Make team a mandatory field on infocategory.g
This commit is contained in:
parent
317a1c0b1c
commit
a8df8f0cee
19
src/info/migrations/0007_auto_20180520_1511.py
Normal file
19
src/info/migrations/0007_auto_20180520_1511.py
Normal 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'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue