Added handling for missing association between login and Person record.

- Legacy-Id: 5932
This commit is contained in:
Henrik Levkowetz 2013-07-31 14:54:03 +00:00
parent b090f1e92c
commit 88bd027776
2 changed files with 13 additions and 1 deletions

View file

@ -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)

View file

@ -0,0 +1,12 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% extends "base.html" %}
{% block content %}
<h1>Missing Person Info</h1>
<p>
There is no person record associated with your login. Please
contact the secretariat at <a href="mailto:ietf-action@ietf.org">ietf-action@ietf.org</a>
and explain the situation.
</p>
{% endblock %}