Re: Django - using intermediate user group model

2018-09-24 Thread Fernando Balmaceda
something like that: User [1] -- [N] Enrollment [N] -- [1] Group)? Then, > the answer in this gist here <https://gist.github.com/jacobian/827937>. > > > W dniu piątek, 21 września 2018 20:16:05 UTC+2 użytkownik Fernando > Balmaceda napisał: >> >> Hi everyo

Django - using intermediate user group model

2018-09-21 Thread Fernando Balmaceda
Hi everyone! I am trying to add a foreign key in a model to the table intermediary between User and Group. Something like this: from django.db import models from django.contrib.auth.models import User class Enrollment(models.Model): user_groups =