From 51fcb6875f52a32042182d4d869fac4cec5eda30 Mon Sep 17 00:00:00 2001 From: Andrew Buss Date: Wed, 3 Jun 2015 23:59:45 -0700 Subject: [PATCH] hide the old version of a card that a user edits --- flashcards/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashcards/models.py b/flashcards/models.py index bb135ae..cd6b492 100644 --- a/flashcards/models.py +++ b/flashcards/models.py @@ -347,7 +347,7 @@ class Flashcard(Model): self.pk = None self.mask = new_data.get('mask', self.mask) self.save() - # user.hide(Flashcard.objects.get(pk=self.previous_id)) + self.hide_by_user(user) user.pull(self) else: user_card, created = UserFlashcard.objects.get_or_create(user=user, flashcard=self) -- 1.9.1