Re: Multiple roles Django 2

2019-07-07 Thread Deepraj Devikar
moldels.py On Sun, Jul 7, 2019 at 9:33 AM laya Mahmoudi wrote: > You should add some code in your settings.py like AUTH_USER_MODEL= > 'appname.modelname' which inherits django user mode. > > > در تاریخ یکشنب

Re: Multiple roles Django 2

2019-07-06 Thread laya Mahmoudi
You should add some code in your settings.py like AUTH_USER_MODEL= 'appname.modelname' which inherits django user mode. در تاریخ یکشنبه ۷ ژوئیهٔ ۲۰۱۹،‏ ۳:۳۷ Shazia Nusrat نوشت: > Hi All, > I am having hard time to get multiple roles for users in a project and I > am having errors. > I've added

Re: Multiple roles Django 2

2019-07-06 Thread Mike Dewhirst
On 7/07/2019 9:07 am, Shazia Nusrat wrote: Hi All, I am having hard time to get multiple roles for users in a project and I am having errors. I've added related_name but still getting error. Can please tell me how to fix this? The error provides a hint. You need an extra argument ...     rel

Multiple roles Django 2

2019-07-06 Thread Shazia Nusrat
Hi All, I am having hard time to get multiple roles for users in a project and I am having errors. I've added related_name but still getting error. Can please tell me how to fix this? *** from django.db import models from django.contrib.auth.models import Ab