def blankContact(request): template = jinja.get_template('contacts/contact.html') context = { 'contact': models.Contact(), 'render': renderDetail, 'uuid': uuid(), 'available': widgets.values(), } return HttpResponse(template.render(**context))
def showContact(request, contactId): contact = models.Contact.objects.get(id=int(contactId)) template = jinja.get_template('contacts/contact.html') context = { 'uuid': contact.uuid, 'render': renderDetail, 'contact': contact, 'commentTemplate': commentTemplate, 'available': widgets.values(), } return HttpResponse(template.render(**context))