Edit model auth user groups Django

0

My data model requires multiple users with multiple roles in multiple companies. That is, a user can be manager of company 1, technician in company 1, client in company 2 and client in company 3. I use the Django groups for the roles: Group 1 Managers, group 2 technicians, group 3 clients.

The solution I came up with was to use the Django table

  

auth_user_groups

To be able to place user, group and company in which he / she plays with that role.

My question is if you can edit this model from the models? Do I need to create another intermediate table? Can I edit this table by manually creating a migration?

I appreciate your answers.

    
asked by Jose Luis Quichimbo 27.10.2018 в 01:16
source

0 answers