Code

Opened 8 years ago

Closed 7 years ago

#2898 closed defect (fixed)

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

Reported by: anonymous Owned by: adrian
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: UI/UX:

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

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.