The formfield_for_choice_field method can be overridden to change the default formfield for a field that has declared choices. For example, if the choices available to a superuser should be different than those available to regular staff.
That doesn't seem to be the case, because the staff and the normal users need to select a department from the same company, so that doens't solve my problem at all. Em 18 de março de 2011 09:55, Thiago Carvalho D' Ávila < [email protected]> escreveu: > Is there any secury issues by using adminfield in normal user forms? > > > 2011/3/17 Shawn Milochik <[email protected]> > >> I believe you can filter them using ModelAdmin.formfield_for_choice_field. >> >> Check out the docs here: >> http://docs.djangoproject.com/en/1.2/ref/contrib/admin/ >> >> Shawn >> >> -- >> 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. >> >> > -- 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.

