From 88bd0277762f00b5b99ab96268aeb859a950ceb7 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 31 Jul 2013 14:54:03 +0000 Subject: [PATCH] Added handling for missing association between login and Person record. - Legacy-Id: 5932 --- ietf/ietfauth/views.py | 2 +- ietf/templates/registration/missing_person.html | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 ietf/templates/registration/missing_person.html diff --git a/ietf/ietfauth/views.py b/ietf/ietfauth/views.py index 9d42d5d77..141237075 100644 --- a/ietf/ietfauth/views.py +++ b/ietf/ietfauth/views.py @@ -88,7 +88,7 @@ def profile(request): try: person = request.user.get_profile() except Person.DoesNotExist: - pass + return render_to_response('registration/missing_person.html', context_instance=RequestContext(request)) if request.method == 'POST': form = PersonForm(request.POST, instance=person) diff --git a/ietf/templates/registration/missing_person.html b/ietf/templates/registration/missing_person.html new file mode 100644 index 000000000..be57ab0e6 --- /dev/null +++ b/ietf/templates/registration/missing_person.html @@ -0,0 +1,12 @@ +{# Copyright The IETF Trust 2007, All Rights Reserved #} +{% extends "base.html" %} + +{% block content %} +

Missing Person Info

+ +

+ There is no person record associated with your login. Please + contact the secretariat at ietf-action@ietf.org + and explain the situation. +

+{% endblock %}