Added handling for missing association between login and Person record.
- Legacy-Id: 5932
This commit is contained in:
parent
b090f1e92c
commit
88bd027776
|
@ -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)
|
||||
|
|
12
ietf/templates/registration/missing_person.html
Normal file
12
ietf/templates/registration/missing_person.html
Normal 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 %}
|
Loading…
Reference in a new issue