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 = models.ForeignKey(User.groups.through,
gt; (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
2 matches
Mail list logo