Commit 532ebd6e388ee64ada5bd699a5f3b4852e93de12

Authored by Laura Hawkins
Exists in master

Flashcards user

Showing 3 changed files Side-by-side Diff

1 1 *~
2 2 venv*
3 3 *.pyc
  4 +.idea*
flashy/flashcards/models.py View file @ 532ebd6
... ... @@ -12,4 +12,34 @@
12 12 flashcard = models.ForeignKey(Flashcard)
13 13 unpulled = model.DateTimeField('date unpulled')
14 14  
  15 +
  16 +#comment
  17 +
  18 +class FlashcardMask(models.Model):
  19 + ranges = models.CharField(max_length=255)
  20 +
  21 +class Flashcard(models.Model):
  22 + text = models.CharField(max_length=255)
  23 + class = models.ForeignKey(Class)
  24 + pushed = models.DateTimeField()
  25 + material_date = models.DateTimeField()
  26 + previous = ForeignKey(Flashcard)
  27 + author = ForeignKey(User)
  28 + hidden = CharField(null=True, max_length=255)
  29 + mask = ForeignKey(FlashcardMask)
  30 +
  31 +class UserFlashCardReview(models.Model):
  32 + user_flashcard = models.ForeignKey(UserFlashCard)
  33 + when = models.DateTimeField()
  34 + blanked_word = models.CharField(max_length=8)
  35 + response = models.CharField(max_length=256, blank=True, null=True)
  36 + correct = models.NullBooleanField()
  37 +
  38 +class Class(models.Model):
  39 + department = models.CharField(max_length=50)
  40 + course_num = models.IntegerField()
  41 + name = models.CharField(max_length=50)
  42 + professor = models.CharField(max_length=50)
  43 + quarter = models.CharField(max_length=4)
  44 + members = models.ManyToManyField(USER)
flashy/flashy/settings.py View file @ 532ebd6
... ... @@ -37,6 +37,7 @@
37 37 'django.contrib.sessions',
38 38 'django.contrib.messages',
39 39 'django.contrib.staticfiles',
  40 + 'flashcards',
40 41 )
41 42  
42 43 MIDDLEWARE_CLASSES = (