What do you need exactly ?? What is the error ?? Do you want to check for user type in templates or views ??? If this is your question ..
1 - use a custom user model 2 - put user types dictionary in custom user model 3 - in your templates and views check the current user type by using request.user.type On Tue, 5 May 2020, 2:39 am fahad rasool, <[email protected]> wrote: > I am working on project which is a diet planner,for that a user have to > signup ,fill a form and them meal plan is generated,in that i have made two > groups one for admin and other for customer,now i am unable to retroeve > data of the customer who is logged in. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CACqgSmCijsSTAp-r3iXkT6T0XpXifUOyRxZJwJ8C4UWt9PVA3g%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CACqgSmCijsSTAp-r3iXkT6T0XpXifUOyRxZJwJ8C4UWt9PVA3g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHV4E-es7Y7ZXQ%3DkYZg8KpzLvqcf8D1u0hTS1Ur11uRUVVTfTQ%40mail.gmail.com.

