Commit e0cc7936898448f0c1f065f892b2b1fdee231731
1 parent
b132d8c719
Exists in
master
fixed typos in models
Showing 1 changed file with 8 additions and 10 deletions Side-by-side Diff
flashy/flashcards/models.py
View file @
e0cc793
1 | 1 | from django.db import models |
2 | -""" | |
3 | - Represents the relationship between a user and a flashcard by: | |
2 | + | |
3 | +class UserFlashcard(models.Models): | |
4 | + """ | |
5 | + Represents the relationship between a user and a flashcard by: | |
4 | 6 | 1. A user has a flashcard in their deck |
5 | 7 | 2. A user used to have a flashcard in their deck |
6 | 8 | 3. A user has a flashcard hidden from them |
7 | -""" | |
8 | -Class UserFlashcard(models.Models): | |
9 | + """ | |
9 | 10 | user = models.ForeignKey(User) |
10 | 11 | mask = models.ForeignKey(FlashcardMask) |
11 | 12 | pulled = models.DateTimeField('date pulled') |
12 | 13 | flashcard = models.ForeignKey(Flashcard) |
13 | - unpulled = model.DateTimeField('date unpulled') | |
14 | - | |
14 | + unpulled = models.DateTimeField('date unpulled') | |
15 | 15 | |
16 | -#comment | |
17 | - | |
18 | 16 | class FlashcardMask(models.Model): |
19 | 17 | ranges = models.CharField(max_length=255) |
20 | 18 | |
... | ... | @@ -29,7 +27,7 @@ |
29 | 27 | mask = models.ForeignKey(FlashcardMask) |
30 | 28 | |
31 | 29 | class UserFlashCardReview(models.Model): |
32 | - user_flashcard = models.ForeignKey(UserFlashCard) | |
30 | + user_flashcard = models.ForeignKey(UserFlashcard) | |
33 | 31 | when = models.DateTimeField() |
34 | 32 | blanked_word = models.CharField(max_length=8) |
35 | 33 | response = models.CharField(max_length=255, blank=True, null=True) |
... | ... | @@ -41,5 +39,5 @@ |
41 | 39 | name = models.CharField(max_length=50) |
42 | 40 | professor = models.CharField(max_length=50) |
43 | 41 | quarter = models.CharField(max_length=4) |
44 | - members = models.ManyToManyField(USER) | |
42 | + members = models.ManyToManyField(User) |