As a newbye I'm happily using admin.

Now I would like to select what a user can see in the admin main page according 
to its username just as a (non-working) example I would like to follow this idea

in admin.py

if request.user=='victor':
  admin.site.register(Categorie)
  admin.site.register(Codiciiva)
  admin.site.register(Magazzini)
else:
  admin.site.register(Marca)
  admin.site.register(Fornitori,FornitoriOption)
  admin.site.register(Pazienti,PazientiOption)
  admin.site.register(unita_misura)

How can I do this?

Ciao
Vittorio

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to