Make team a mandatory field on infocategory.g

This commit is contained in:
Víðir Valberg Guðmundsson 2018-05-20 22:11:39 +02:00
parent 317a1c0b1c
commit a8df8f0cee
2 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1,19 @@
# Generated by Django 2.0.4 on 2018-05-20 20:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('info', '0006_auto_20180520_1113'),
]
operations = [
migrations.AlterField(
model_name='infocategory',
name='team',
field=models.ForeignKey(help_text='The team responsible for this info category.', on_delete=django.db.models.deletion.PROTECT, related_name='info_categories', to='teams.Team'),
),
]

View file

@ -26,8 +26,6 @@ class InfoCategory(CampRelatedModel):
team = models.ForeignKey( team = models.ForeignKey(
'teams.Team', 'teams.Team',
null=True,
blank=True,
help_text='The team responsible for this info category.', help_text='The team responsible for this info category.',
on_delete=models.PROTECT, on_delete=models.PROTECT,
related_name='info_categories' related_name='info_categories'