Implement a catchall for the remaining infocategories.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-05-20 22:27:41 +02:00
parent decfa29659
commit 5b77cb5aa2

View file

@ -59,6 +59,9 @@ def add_teams_to_categories(apps, schema_editor):
bar = team2018.get(name="Bar")
infocategories2018.filter(anchor__in=["bar"]).update(team=bar)
# Make info team catch all remaining
infocategories2018.filter(team__isnull=True).update(team=infoteam)
class Migration(migrations.Migration):