Is it possible to use gettext_lazy in a model's __repr__ while using
the objects from a python shell (started with 'manage.py shell')?

When I try to do so I get the following error:

Traceback (most recent call last):
  File "<console>", line 1, in ?
  File
"/var/home/j.rademaker/django/myproject/../myproject/polls/models/polls.py",
line 12, in __repr__
    return _('The question is: %s') % self.question
TypeError: 'NoneType' object is not callable

Everything works fine from djanog's admin interface.

Reply via email to