Add possibility to add custom states to an association.
This commit is contained in:
		
							parent
							
								
									0d6482792c
								
							
						
					
					
						commit
						5555992f06
					
				
					 6 changed files with 94 additions and 2 deletions
				
			
		
							
								
								
									
										26
									
								
								dronken/migrations/0005_auto_20180913_1129.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								dronken/migrations/0005_auto_20180913_1129.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,26 @@
 | 
			
		|||
# Generated by Django 2.0 on 2018-09-13 11:29
 | 
			
		||||
 | 
			
		||||
from django.db import migrations, models
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ('dronken', '0004_auto_20180306_1341'),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.CreateModel(
 | 
			
		||||
            name='ExtraState',
 | 
			
		||||
            fields=[
 | 
			
		||||
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
 | 
			
		||||
                ('name', models.CharField(max_length=255)),
 | 
			
		||||
                ('value', models.CharField(max_length=255)),
 | 
			
		||||
            ],
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AddField(
 | 
			
		||||
            model_name='association',
 | 
			
		||||
            name='extra_states',
 | 
			
		||||
            field=models.ManyToManyField(to='dronken.ExtraState'),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
							
								
								
									
										18
									
								
								dronken/migrations/0006_auto_20180913_1135.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								dronken/migrations/0006_auto_20180913_1135.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,18 @@
 | 
			
		|||
# Generated by Django 2.0 on 2018-09-13 11:35
 | 
			
		||||
 | 
			
		||||
from django.db import migrations, models
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ('dronken', '0005_auto_20180913_1129'),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='association',
 | 
			
		||||
            name='state',
 | 
			
		||||
            field=models.CharField(max_length=255),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
							
								
								
									
										18
									
								
								dronken/migrations/0007_auto_20180913_1141.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								dronken/migrations/0007_auto_20180913_1141.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,18 @@
 | 
			
		|||
# Generated by Django 2.0 on 2018-09-13 11:41
 | 
			
		||||
 | 
			
		||||
from django.db import migrations, models
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ('dronken', '0006_auto_20180913_1135'),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='association',
 | 
			
		||||
            name='extra_states',
 | 
			
		||||
            field=models.ManyToManyField(blank=True, null=True, to='dronken.ExtraState'),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue