from django.contrib.auth.models import Group, Permission
class MyModel(models.Model):
title = models.CharField(max_length=200, null=True)
groups = [ What comes next? ]
# models.py
from django.contrib.auth.models import Group, Permission
class MyModel(models.Model):
title = models.CharField(max_length=200, null=True)
groups = models.ForeignKey(Group, on_delete=models.CASCADE)