Add natural key support to the user mailer model.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models
|
||||
|
||||
|
||||
class UserMailerManager(models.Manager):
|
||||
def get_by_natural_key(self, label):
|
||||
return self.get(label=label)
|
||||
Reference in New Issue
Block a user