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 %} +
+ There is no person record associated with your login. Please + contact the secretariat at ietf-action@ietf.org + and explain the situation. +
+{% endblock %}