1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-10 06:48:19 +02:00

optionable reference to user model

This commit is contained in:
Erik Telepovský 2017-11-05 10:21:30 +01:00
parent 08512ac316
commit 45488cb725
3 changed files with 31 additions and 0 deletions

View file

@ -48,6 +48,13 @@ class ActiveMailboxManager(models.Manager):
@python_2_unicode_compatible
class Mailbox(models.Model):
user = models.ForeignKey(
django_settings.AUTH_USER_MODEL,
blank=True,
null=True,
default=None
)
name = models.CharField(
_(u'Name'),
max_length=255,