Hi, I have an admin add form that allows users to insert documents. I have a select box which currently displays all company departments and their relevant categories (e.g. finance and admin -> payroll, finance and admin -> expenses etc). What I would like to do is display the relevant departments and categories only to which the current user belongs. I am totally stumped on how to go about this so any help is much appreciated. Currently I am overriding get_form and get_fieldset to display all departments and categories if the user has all permissions. If the user doesn't have these permissions, the select box is removed and the department to which the current user belongs is used - but this limits the choice to the top level (i.e. finance) and not the categories of the department.
Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---