djangocms_blog/tests/test_utils/models.py
2016-05-11 18:53:12 +02:00

10 lines
240 B
Python

# -*- 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