#19421: When RelatedModel.__unicode__ fails, InlineModelAdmin are not displayed
-------------------------------+--------------------
     Reporter:  benjaoming     |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.4
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  1              |      UI/UX:  0
-------------------------------+--------------------
 Example code:

 {{{
 class RelatedModel:
     def __unicode__(self):
         return self.invalid_property

 class SomeInline(admin.TabularInline):
     model = RelatedModel

 class SomeAdmin(admin.ModelAdmin):
     inlines = [SomeInline]
 }}}

 When `RelatedModel.__unicode__` is called, an exception occurs but is
 silently ignored. The inlines work fine when adding new objects with
 SomeAdmin, since `__unicode__` is not called here. But when editing an
 object, the inlines simply disappear!

 Expected result: An exception should occur.

 Similar experiences here: http://stackoverflow.com/questions/4102241
 /django-admin-missing-inlines-for-some-records

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19421>
Django <https://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to