What I try to achieve:
I have a couple of model methods that exposes real time information.
(Retrieved when method is called.)  This is information I want to
display not only in the list_display, but also within the change view.
(Where the fieldsets come into play).

Since the list_display option support methods call I was wondering how
I can expose this information within the change view without too much
changing the default code.  I think the problem is that the change
view builds up a form from the model and method calls can not be
updated.  The reason why not included in the form object ..and
therefor not visible to the fieldsets field?

Still clear as mud?

On Jan 7, 5:48 pm, Daniel Roseman <roseman.dan...@googlemail.com>
wrote:
> On Jan 7, 10:35 am, EagerToUnderstand <truh...@gmail.com> wrote:
>
> > I am referencing a self defined model method in list_display option of
> > ModelAdmin.  I would like to do the same in the fiedsets option of
> > ModelAdmin, but I get an error saying my method is missing from the
> > form when the page is rendered.  It seems to me I can only render
> > model methods with list_display and not the fiedsets.
>
> > Any tips to get this working?
>
> Not at all sure what you're hoping to achieve here. Fieldsets are for
> groups of fields on the model edit page. How does a model method fit
> into this? Can you show us some code?
> --
> DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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