On Sep 2, 10:59 am, Matthias Kestenholz <[email protected]> wrote: > On Wed, Sep 2, 2009 at 10:38 AM, Enrico > > Sartorello<[email protected]> wrote: > >> if you need this only for the administration site you'd hvae other > >> hooks that you could override. Either take a look at the documentation > >> or at django/contrib/admin/options.py > > > If you mean overriding the ModelAdmin.form object, that doesn't solve the > > problem as far as i can see, cause i can't provide arguments there (in that > > case, the user). > > That's correct, but luckily there are more customization hooks available. > > Matthias
In particular, you want to look at overriding add_view and change_view in the ModelAdmin class. -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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 this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

