Re: Dynamicly preset forms in the admin interface
2009/11/29 rebus_ <r.dav.lc@gmail.com>:
> Have you tried using fieldsets [1] in you ModelAdmin. Also you can
> override save_model method on the ModelAdmin to set values for some
> object attributes when the object is being saved [2].
I don't see how I can use fieldsets to achieve this. I thought with
the fieldsets I just tell django what forms to show in the interface,
but not what to put in it.
And when I overwrite the save_model method, there is no way to show
the user what will end up in the database, right? So that is not the
right way when I want to have the user to have the opportunity, to
change the default data.
Greets,
--
Kai Timmer | http://kaitimmer.de
Email : email@kaitimmer.de
Jabber (Google Talk): kai@kait.de
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home