Commit 9f66c51f66d417a271a27a8bce4b1729cb412b85

Authored by Rachel Lee
1 parent 6be5137ea1
Exists in master

Flashcard class added to models.py

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

flashy/flashcards/models.py View file @ 9f66c51
1 1 from django.db import models
2 2  
3 3 # Create your models here.
  4 +class Flashcard(models.Model):
  5 + text = models.CharField(max_length=255)
  6 + class = models.ForeignKey(Class)
  7 + pushed = models.DateTimeField()
  8 + material_date = models.DateTimeField()
  9 + previous = ForeignKey(Flashcard)
  10 + author = ForeignKey(User)
  11 + hidden = CharField(null=True, max_length=255)
  12 + mask = ForeignKey(FlashcardMask)