feat [full]: regroup digital formats

This commit is contained in:
Alice 2022-04-09 02:48:03 +02:00
parent 64787d914c
commit 4767becf7f
3 changed files with 3 additions and 9 deletions

View file

@ -75,11 +75,7 @@
</label>
<label class="radio">
<input type="radio" name="format" />
{{ Format.BLU_RAY }}
</label>
<label class="radio">
<input type="radio" name="format" />
{{ Format.DVD }}
{{ Format.DIGITAL }}
</label>
</div>
</div>

View file

@ -1,7 +1,6 @@
export enum Format {
ANALOG_35 = "35mm",
DVD = "DVD",
BLU_RAY = "Blu ray",
DIGITAL = "Numérique",
}
export enum LanguageSubtitles {
FRENCH = "VOF",

View file

@ -9,8 +9,7 @@ TODO implement validators
class Film(models.Model):
class MovieFormat(models.TextChoices):
ANALOG_35 = "35mm"
DVD = "DVD"
BLU_RAY = "Blu ray"
DIGITAL = "Numérique"
class LanguageSubtitles(models.TextChoices):
FRENCH = "VOF"