We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 689d0fe commit 6ef66f5Copy full SHA for 6ef66f5
models.py
@@ -5,15 +5,15 @@
5
6
from django.db import models
7
8
-from reporters.models import PersistantBackend
+from rapidsms.models import Backend
9
10
class SIM(models.Model):
11
operator_name = models.CharField(max_length=20, blank=True, null=True)
12
- backend = models.ForeignKey(PersistantBackend, blank=True, null=True)
+ backend = models.ForeignKey(Backend, blank=True, null=True)
13
balance = models.CharField(max_length=500, blank=True, null=True)
14
15
def __unicode__(self):
16
- return "%s (%s)" % (self.operator_name, self.backend.slug)
+ return "%s (%s)" % (self.operator_name, self.backend)
17
18
class OperatorNotification(models.Model):
19
NOTIFICATION_CHOICES = (
0 commit comments