Skip to content

Django Auth app

django-auth-tables.png

Add a user to a Group

from django.contrib.auth.models import Group
my_group = Group.objects.get(name='my_group_name')

my_group.user_set.add(your_user)

Why it's not enough?

  • why we had to implement our own

Last update: 2023-04-24