Skip to content

Instantly share code, notes, and snippets.

@horvatha
Created November 12, 2017 13:44
Show Gist options
  • Save horvatha/e88dfae2e72b207b847fcb28d31c6a64 to your computer and use it in GitHub Desktop.
Save horvatha/e88dfae2e72b207b847fcb28d31c6a64 to your computer and use it in GitHub Desktop.
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