Commit 4577098f09be39e9218558237e986e0d6809378c
1 parent
00487133ac
Exists in
master
stuff
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
flashy/flashcards/models.py
View file @
4577098
1 | 1 | from django.db import models |
2 | +class UserFlashcard(models.Models): | |
2 | 3 | """ |
3 | 4 | Represents the relationship between a user and a flashcard by: |
4 | 5 | 1. A user has a flashcard in their deck |
5 | 6 | 2. A user used to have a flashcard in their deck |
6 | 7 | 3. A user has a flashcard hidden from them |
7 | 8 | """ |
8 | -Class UserFlashcard(models.Models): | |
9 | 9 | user = models.ForeignKey(User) |
10 | 10 | mask = models.ForeignKey(FlashcardMask) |
11 | - pulled = models.DateTimeField('date pulled') | |
12 | 11 | flashcard = models.ForeignKey(Flashcard) |
12 | + pulled = models.DateTimeField('date pulled') | |
13 | 13 | unpulled = model.DateTimeField('date unpulled') |
14 | 14 | |
15 | 15 |