[FIX] Set planet_moon field as not required

It is explicitly set to be not required in the form, so it shouldn't be required in the Django backend
This commit is contained in:
Peter Pfeufer 2022-07-18 19:37:25 +02:00
parent 0d4cab66b2
commit 06e38dcd93
No known key found for this signature in database
GPG Key ID: 6051D2C6AD4EBC27
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 4.0.6 on 2022-07-18 17:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timerboard', '0004_timer_type'),
]
operations = [
migrations.AlterField(
model_name='timer',
name='planet_moon',
field=models.CharField(blank=True, default='', max_length=254),
),
]

View File

@ -26,7 +26,7 @@ class Timer(models.Model):
details = models.CharField(max_length=254, default="") details = models.CharField(max_length=254, default="")
system = models.CharField(max_length=254, default="") system = models.CharField(max_length=254, default="")
planet_moon = models.CharField(max_length=254, default="") planet_moon = models.CharField(max_length=254, blank=True, default="")
structure = models.CharField(max_length=254, default="") structure = models.CharField(max_length=254, default="")
timer_type = models.CharField( timer_type = models.CharField(
max_length=254, max_length=254,