Commit 8806ae51b7721986965cb79fd13f2b02569f5ff6
1 parent
ff1c4d11d6
Exists in
master
Fixed stupid bug :(
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
flashcards/serializers.py
View file @
8806ae5
... | ... | @@ -246,7 +246,7 @@ |
246 | 246 | |
247 | 247 | def to_representation(self, instance): |
248 | 248 | return { |
249 | - 'pk': instance.user_flashcard.pk, | |
249 | + 'pk': instance.pk, | |
250 | 250 | 'section': instance.user_flashcard.flashcard.section.pk, |
251 | 251 | 'text': instance.user_flashcard.flashcard.text, |
252 | 252 | 'mask': self.mask |