From 767debc0bd38361808c0ca29c89e6cf950eeb7f2 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 16 Nov 2015 11:49:17 +0200 Subject: Cleanup --- servo/models/account.py | 4 +--- servo/models/note.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'servo/models') diff --git a/servo/models/account.py b/servo/models/account.py index 46eb674..13718c2 100644 --- a/servo/models/account.py +++ b/servo/models/account.py @@ -35,7 +35,6 @@ class TechieManager(UserManager): class User(AbstractUser): - customer = TreeForeignKey( Customer, null=True, @@ -58,7 +57,7 @@ class User(AbstractUser): related_name='+', on_delete=models.PROTECT, verbose_name=_('Current Location'), - help_text=_(u'Orders you create will be registered to this location.') + help_text=_('Orders you create will be registered to this location.') ) queues = models.ManyToManyField(Queue, blank=True, verbose_name=_('queues')) LOCALES = ( @@ -277,7 +276,6 @@ class User(AbstractUser): class UserGroup(Group): - def members_as_list(self): pass diff --git a/servo/models/note.py b/servo/models/note.py index ad92f7e..f5b8c15 100644 --- a/servo/models/note.py +++ b/servo/models/note.py @@ -349,9 +349,7 @@ class Note(MPTTModel): return r.exclude(status='FAILED').exists() def send_mail(self, user): - """ - Sends this note as an email - """ + """Sends this note as an email""" mailto = self.mailto() # Only send the same note once -- cgit v1.2.3