Opened 18 years ago

Closed 18 years ago

#2898 closed defect (fixed)

A bug: ngettext is not imported in django.db.models.fields.related

Reported by: anonymous Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: major Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response
  74. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py" in _checklogin
  55. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  39. response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/main.py" in change_stage
  323. errors = manipulator.get_validation_errors(new_data)
File "/usr/lib/python2.4/site-packages/django/forms/__init__.py" in get_validation_errors
  58. errors.update(field.get_validation_errors(new_data))
File "/usr/lib/python2.4/site-packages/django/forms/__init__.py" in get_validation_errors
  351. self.run_validator(new_data, validator)
File "/usr/lib/python2.4/site-packages/django/forms/__init__.py" in run_validator
  341. validator(new_data.get(self.field_name, ''), new_data)
File "/usr/lib/python2.4/site-packages/django/db/models/fields/related.py" in isValidIDList
  664. raise validators.ValidationError, ngettext("Please enter valid %(self)s IDs. The value %(value)r is invalid.",

  NameError at /admin/pp/zik/1/
  global name 'ngettext' is not defined

Change History (1)

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [3926]) Fixed #2898 -- Added missing ngettext import to django.db.models.fields.related

Note: See TracTickets for help on using tickets.
Back to Top