Closed
Bug 675846
Opened 13 years ago
Closed 13 years ago
Webifyme: [traceback] NameError: global name '_' is not defined
Categories
(Websites :: webifyme.org, defect, P1)
Websites
webifyme.org
Tracking
(Not tracked)
VERIFIED
FIXED
1.0
People
(Reporter: stephend, Assigned: brez)
References
()
Details
(Whiteboard: [fuzzer])
With the following POST to https://webifyme-dev.allizom.org/en-US/quiz/, POST:<QueryDict: {u'download_reminder': [u'on'], u'csrfmiddlewaretoken': [u'd2597fe862fd419484a35a7d7deb6ac6'], u'gallery_include': [u'on'], u'name': [u''], u'email': [u'']}>,, I get:
Traceback (most recent call last):
File "/data/www/python/webifyme.org/webifyme/ff4/vendor/src/django/django/core/handlers/base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/data/www/python/webifyme.org/webifyme/ff4/things/views.py", line 278, in quiz
if not form.is_valid():
File "/data/www/python/webifyme.org/webifyme/ff4/vendor/src/django/django/forms/forms.py", line 121, in is_valid
return self.is_bound and not bool(self.errors)
File "/data/www/python/webifyme.org/webifyme/ff4/vendor/src/django/django/forms/forms.py", line 112, in _get_errors
self.full_clean()
File "/data/www/python/webifyme.org/webifyme/ff4/vendor/src/django/django/forms/forms.py", line 267, in full_clean
self._clean_fields()
File "/data/www/python/webifyme.org/webifyme/ff4/vendor/src/django/django/forms/forms.py", line 287, in _clean_fields
value = getattr(self, 'clean_%s' % name)()
File "/data/www/python/webifyme.org/webifyme/ff4/../ff4/things/forms.py", line 21, in clean_download_reminder
raise forms.ValidationError(_('Download reminder requires email.'))
NameError: global name '_' is not defined
Updated•13 years ago
|
Assignee: nobody → jbresnik
Updated•13 years ago
|
Summary: [traceback] NameError: global name '_' is not defined → Webifyme: [traceback] NameError: global name '_' is not defined
Just missing the import statement:
https://github.com/mozilla/webifyme/commit/eff9052961002ecc9bb55b7e3d931343aa8e4d08
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 2•13 years ago
|
||
Verified FIXED on https://webifyme-dev.allizom.org; thanks!
Status: RESOLVED → VERIFIED
Reporter | ||
Updated•13 years ago
|
Priority: -- → P1
Target Milestone: --- → 1.0
Reporter | ||
Updated•13 years ago
|
Whiteboard: [fuzzer]
You need to log in
before you can comment on or make changes to this bug.
Description
•