Created
November 12, 2017 13:44
-
-
Save horvatha/e88dfae2e72b207b847fcb28d31c6a64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AudioRecord(models.Model): | |
file_ = models.FileField() | |
comment = models.TextField(max_length=200, blank=True) | |
class PracticingRecord(models.Model): | |
audio_record = modelf.ForeignKey(AudioRecord) | |
composition = models.ForeignKey(Composition) | |
part = models.CharField( | |
max_length=3, | |
choices=( | |
("all", "minden szólam"), | |
("F", "női szólamok"), | |
("M", "férfi szólamok"), | |
("S", "Szoprán"), | |
("S1", "Szoprán 1"), | |
("S2", "Szoprán 2"), | |
... | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment