ngageoint / geoevents

The GeoEvents project is a dynamic and customizable open source web presence that provides a common operational picture to consolidate activities, manage content, and provides a single point of discovery. GeoEvents was used by deployers and first responders in over 100 real-world events.
MIT License
41 stars 12 forks source link

include SubjectEmailMap ... #3

Closed dacresni closed 10 years ago

dacresni commented 10 years ago

How did work before?

The following error occurs when a user trys to submit feedback: Traceback (most recent call last):

File "/ozone/django-test/lib/python2.6/site-packages/django/core/handlers/base.py", line 115, in get_response response = callback(request, _callback_args, *_callback_kwargs)

File "/ozone/django-test/lib/python2.6/site-packages/django/views/generic/base.py", line 68, in view return self.dispatch(request, _args, *_kwargs)

File "/ozone/django-test/lib/python2.6/site-packages/django/views/generic/base.py", line 86, in dispatch return handler(request, _args, *_kwargs)

File "/ozone/django-test/lib/python2.6/site-packages/django/views/generic/edit.py", line 199, in post return super(BaseCreateView, self).post(request, _args, *_kwargs)

File "/ozone/django-test/lib/python2.6/site-packages/django/views/generic/edit.py", line 165, in post return self.form_valid(form)

File "/ozone/django/django/r3/feedback/views.py", line 74, in form_valid self.send_email()

File "/ozone/django/django/r3/feedback/views.py", line 50, in send_email except SubjectEmailMap.DoesNotExist: # this subject hasn't been defined yet

NameError: global name 'SubjectEmailMap' is not defined

jaycrossler commented 10 years ago

Thanks! Good catch.