Sorry but it is still not clear why you can not use Group for that?
For instance you can create group `Manager` and assign any additional
permissions to it based on your app requirements.

Regarding to User you have 2 options here as said on this page
<https://docs.djangoproject.com/en/2.0/topics/auth/customizing/>
> You can extend
<https://docs.djangoproject.com/en/2.0/topics/auth/customizing/#extending-user>
the
default User model, or substitute
<https://docs.djangoproject.com/en/2.0/topics/auth/customizing/#auth-custom-user>
a
completely customized model.

this is a preferable way to do it.

I hope it make sense to you.

Regards,
Constantine C.

On Tue, Dec 19, 2017 at 9:46 AM, Ketul Suthar <k2lsut...@gmail.com> wrote:

> Yes. But I want to  assign role to user as normal user and manager based
> on selection from drop down in admin site and also add new field role_id in
> auth_user table
>
> On Dec 19, 2017 8:13 PM, "Constantine Covtushenko" <
> constantine....@gmail.com> wrote:
>
>> Hi Ketul,
>>
>> Did you read that <https://docs.djangoproject.com/en/2.0/topics/auth/>
>> django documentation?
>> There you can find all about users, their roles/groups and permissions.
>>
>> Also can you please elaborate what do you mean under `admin panel`?
>> Is it just a reference to admin site?
>>
>> Does it make sense?
>>
>> Regards,
>> Constantine C.
>>
>> On Mon, Dec 18, 2017 at 11:38 PM, Ketul Suthar <k2lsut...@gmail.com>
>> wrote:
>>
>>> I have admin who can create User and Manager
>>>
>>> User (id, name, password,role)
>>> Manager (id, name, password,role)
>>>
>>>
>>> So how can i achieve using admin panel in djnago ?
>>>
>>> for that I have to extend User model or create other model ?
>>>
>>>
>>> Can I use same model for User and Manager ? If the i have to add role
>>> field hoe can I add to User model ?
>>>
>>> And all this thing I have to handle from Django admin side how can I
>>> achieve it ?
>>>
>>> --
>>> 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 https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/870fe422-9be6-4e88-bd47-2572296c224e%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/870fe422-9be6-4e88-bd47-2572296c224e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Sincerely yours,
>> Constantine C
>>
>> --
>> 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 https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/CAK52boWm3zNQF6%2BWtQ4hvKCM25bF-rxgLixZmWhX
>> 5yVrra-%2BOQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK52boWm3zNQF6%2BWtQ4hvKCM25bF-rxgLixZmWhX5yVrra-%2BOQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CANuqdaWH5UoP2TCxOOr8mVDjQ%2B%
> 3DJzap0kAsPS0863O7yOVOxiA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANuqdaWH5UoP2TCxOOr8mVDjQ%2B%3DJzap0kAsPS0863O7yOVOxiA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Sincerely yours,
Constantine C

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK52boX%2BzBAUO5d6M5dncKUytPQDA_4F7w%2BFgRnnxHa0NAn2xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to