Would somebody be able to provide a simple example of using get_form() within the ModelAdmin to retrieve the currently logged-in user?
Thanks in advance, Nick On Aug 26, 10:16 am, patrickk <[EMAIL PROTECTED]> wrote: > can someone provide an example for this? > > moreover, how is it possible to limit choices on a website (not using > ModelAdmin)? > > thanks, > patrick > > On Aug 25, 9:35 am, krylatij <[EMAIL PROTECTED]> wrote: > > > > There is no longer any reason whatsoever to use this in any way in the > > > admin. It was an ugly, fragile hack before and it's unnecessary now > > > because ModelAdmin has a get_form() method -- which receives the > > > HttpRequest object as an argument -- that you can override to tweak > > > the form on a per-request basis. > > > thanx! good news! --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---