#10945: Typo in get_display() crashes runserver -------------------------------------------+-------------------------------- Reporter: shacker | Owner: nobody Status: new | Milestone: Component: django-admin.py runserver | Version: 1.0 Keywords: admin, runserver, get_display | Stage: Unreviewed Has_patch: 0 | -------------------------------------------+-------------------------------- In 1.1 beta 1 SVN-10638, the following code, which is missing the parentheses in self.get_title_display() will crash runserver when an admin view is loaded. Mac OS raises a "Python has quit unxpectedly" dialog and a shell prompt is returned. This error should bubble up to where it can be reported in the console or browser.
{{{ class CommitteeJob(models.Model): title = models.CharField(choices=COMMITTEE_JOBS_CHOICES,max_length=12) reports_to = models.ForeignKey(BoardPosition) def __unicode__(self): return u'%s' % (self.get_title_display) }}} -- Ticket URL: <http://code.djangoproject.com/ticket/10945> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---