Commit b702b819119bb6318347e11a17d765b585fb1cba

Authored by Rohan Rangray
1 parent b85f5cb677
Exists in master

Converted the mask from list of tuples to list of lists to be stored in postgres.

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

flashcards/fields.py View file @ b702b81
... ... @@ -40,7 +40,7 @@
40 40 def to_python(self, value):
41 41 if value is None:
42 42 return value
43   - return sorted(list(FlashcardMask(value)))
  43 + return sorted(map(list, FlashcardMask(value)))
44 44  
45 45 def get_prep_value(self, value):
46 46 if value is None: