2015-10-18 10:46:50 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2016-05-11 15:22:12 +00:00
|
|
|
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
|