diff --git a/pinax/teams/migrations/0003_add_team_parent.py b/pinax/teams/migrations/0003_add_team_parent.py deleted file mode 100644 index 62305c2..0000000 --- a/pinax/teams/migrations/0003_add_team_parent.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('pinax_teams', '0002_add_simple_model'), - ] - - operations = [ - migrations.AddField( - model_name='team', - name='parent', - field=models.ForeignKey(related_name=b'children', blank=True, to='pinax_teams.Team', null=True), - ), - ] diff --git a/pinax/teams/migrations/0005_add_team_parent.py b/pinax/teams/migrations/0005_add_team_parent.py new file mode 100644 index 0000000..7e44d89 --- /dev/null +++ b/pinax/teams/migrations/0005_add_team_parent.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.3 on 2017-07-17 21:34 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('pinax_teams', '0004_auto_20170511_0856'), + ] + + operations = [ + migrations.AddField( + model_name='simpleteam', + name='parent', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='pinax_teams.SimpleTeam'), + ), + migrations.AddField( + model_name='team', + name='parent', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='pinax_teams.Team'), + ), + ]