From c888ea93d1b1a4e790468ae5cc6757830ba60990 Mon Sep 17 00:00:00 2001 From: Stefan Koegl Date: Sat, 17 Apr 2010 15:04:23 +0200 Subject: [PATCH] add missing unique_together constraint for BackendSubscription --- mygpo/data/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mygpo/data/models.py b/mygpo/data/models.py index 41dca735..45e29389 100644 --- a/mygpo/data/models.py +++ b/mygpo/data/models.py @@ -23,6 +23,7 @@ class BackendSubscription(models.Model): subscribed_since = models.DateTimeField() class Meta: + unique_together = ('device', 'podcast', 'user') db_table = 'subscriptions' -- 2.11.4.GIT