On 23 April 2014 01:52, hito koto <hitokoto2...@gmail.com> wrote: > thank you very much >>>>Each Staff can login. >>>>Each staff should only see their own page or dataset. > This is correct > > I want to create administrator page and each staff , > 1, i want , Staff can see the staff page with ID and PW that an > administrator has issued > 2, administrator can see all the staff page and all staff's information > 3, each staff should only see their own page or dataset. > So, i don't know how to create staff page,only see their own page, > > please help me >
Ok, well first things first. You can do this through the django admin, but it would be easier if you didn't. Create a class based DetailView like such: https://docs.djangoproject.com/en/1.7/topics/class-based-views/ using your Staff model as the base, set up a url schema to deal with it and then add a mixin as explained in the Stack Overflow post I linked to. The administrator/Manager can always see all data through their admin view, the staff need to login, and they get the restricted view of their own page. cheers L. -- >From this perspective it is natural that anarchism be marked by spontaneity, differentiation, and experimentation that it be marked by an expressed affinity with chaos, if chaos is understood to be what lies outside or beyond the dominant game or system. Because of the resistance to definition and categorisation, the anarchist principle has been variously interpreted as, rather than an articulated position, “a moral attitude, an emotional climate, or even a mood”. This mood hangs in dramatic tension between utopian hope or dystopian nihilism... ----- http://zuihitsu.org/godspeed-you-black-emperor-and-the-politics-of-chaos -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBeqiPucMDoSrDL7z8%3DX-dKggzywvsTVRG6FkZ_e%3DD%3DNGFPKw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.