diff --git a/flashcards/models.py b/flashcards/models.py index d4f4fae..557bbb3 100644 --- a/flashcards/models.py +++ b/flashcards/models.py @@ -320,7 +320,7 @@ class Flashcard(Model): :param user: :return: Whether the card is hidden from the user. """ - if self.is_not_hidden: return False + if hasattr(self, 'is_not_hidden') and self.is_not_hidden: return False return self.is_hidden or self.flashcardhide_set.filter(user=user).exists() def is_in_deck(self, user):