We have an odd situation where, for one of our model forms, the
inlines do not regularly show up on the form page, but if you refresh
the browser window, they will appear with the correct data.

Has anyone else run into this before? I am not really sure how to
debug it since it is not consistent. However, i do know that it is not
tied to a specific browser (I can make it happen in Safari, Chrome or
Firefox) and sometimes they do show up. When I have django toolbar
debug turned on in my development environment it does not show any
indication of the inlines when they don't show up so it tells me
something is happening further upstream.

Here is the admin code to build the ModelAdmin form in this instance:

class LegalObjectActionInline(admin.TabularInline):
    model = LegalObjectAction


class LegalObjectAdmin(admin.ModelAdmin):

    save_on_top = True
    form = LegalObjectForm
    list_display = ( 'offer_code', 'legal_site', 'created_by',
'copyright_or_trademark', 'store', 'current_state', 'overdue' )
    list_filter = ( 'created', 'modified', 'copyright_or_trademark',
'legal_site',)
    list_select_related = True
    search_fields = ['legal_site', 'store', 'copyright_or_trademark']
    fields = ('offer_code', 'store', 'copyright_or_trademark',
'page_found', 'legal_site', )

    inlines = [LegalObjectActionInline,]

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to