Implement per site restriction for users
This commit is contained in:
parent
9c228df813
commit
01880591b7
11 changed files with 326 additions and 6 deletions
|
|
@ -1 +1,10 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from django.contrib.auth.models import AbstractUser
|
||||
from django.db import models
|
||||
|
||||
|
||||
class CustomUser(AbstractUser):
|
||||
sites = models.ManyToManyField('sites.Site')
|
||||
|
||||
def get_sites(self):
|
||||
return self.sites
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue