Permalink
Browse files

add unique_together constraint to existing Meta class

  • Loading branch information...
1 parent a4f2b49 commit 43f12d6e43badfbc2083dab45b2f0d933153b675 @tobiasmcnulty tobiasmcnulty committed Dec 2, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/rapidsms/models.py
View
@@ -149,6 +149,7 @@ class ConnectionBase(models.Model):
class Meta:
abstract = True
+ unique_together = (('backend', 'identity'),)
def __unicode__(self):
return "%s via %s" %\
@@ -180,9 +181,6 @@ def message(self, template, **kwargs):
return True
- class Meta:
- unique_together = (('backend', 'identity'),)
-
class Connection(ConnectionBase):
"""

0 comments on commit 43f12d6

Please sign in to comment.