-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
274 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Generated by Django 2.1.11 on 2019-08-06 20:44 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Bar', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='The bar name', max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Egg', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='The egg name', max_length=50)), | ||
('name2', models.CharField(help_text='The egg 2nd name', max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ExtraSpam', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='The extra spam name', max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Foo', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='The foo name', max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='FooExtraSpam', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('extra_spam', models.ForeignKey(help_text='The extra spam object', on_delete=django.db.models.deletion.CASCADE, to='autocompletionexample.ExtraSpam')), | ||
('foo', models.ForeignKey(help_text='The foo object', on_delete=django.db.models.deletion.CASCADE, to='autocompletionexample.Foo')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Spam', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='The spam name', max_length=50)), | ||
('foo', models.ManyToManyField(to='autocompletionexample.Foo')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='extraspam', | ||
name='foo', | ||
field=models.ManyToManyField(through='autocompletionexample.FooExtraSpam', to='autocompletionexample.Foo'), | ||
), | ||
migrations.AddField( | ||
model_name='egg', | ||
name='foo', | ||
field=models.OneToOneField(help_text='The foo object', on_delete=django.db.models.deletion.CASCADE, to='autocompletionexample.Foo'), | ||
), | ||
migrations.AddField( | ||
model_name='bar', | ||
name='foo', | ||
field=models.ForeignKey(help_text='The foo object', on_delete=django.db.models.deletion.CASCADE, to='autocompletionexample.Foo'), | ||
), | ||
] |
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
# Generated by Django 2.1.11 on 2019-08-06 20:49 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='DoubleName', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name_a', models.CharField(max_length=50)), | ||
('name_b', models.CharField(max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ErrorName', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='Impossible to save name', max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ForeignKeyToSimpleName', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='InlineModel', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ManyToManyThrough', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ManyToManyToDoubleName', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=50)), | ||
('double_names', models.ManyToManyField(help_text='Double names help', to='demo.DoubleName', verbose_name='Verbose double names')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ManyToManyToError', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ManyToManyToSimpleName', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='SimpleName', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='Help text of the name', max_length=50)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ThroughModel', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=50)), | ||
('many_to_many_through', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='demo.ManyToManyThrough')), | ||
('simple_name', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='demo.SimpleName')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='manytomanytosimplename', | ||
name='simple_names', | ||
field=models.ManyToManyField(help_text='Missing items will be auto-created', to='demo.SimpleName', verbose_name='Verbose simple names'), | ||
), | ||
migrations.AddField( | ||
model_name='manytomanytoerror', | ||
name='simple_names', | ||
field=models.ManyToManyField(help_text='Impossible to save', to='demo.SimpleName', verbose_name='Verbose simple names'), | ||
), | ||
migrations.AddField( | ||
model_name='manytomanythrough', | ||
name='simple_names', | ||
field=models.ManyToManyField(through='demo.ThroughModel', to='demo.SimpleName'), | ||
), | ||
migrations.AddField( | ||
model_name='inlinemodel', | ||
name='double_names', | ||
field=models.ManyToManyField(to='demo.ManyToManyToDoubleName'), | ||
), | ||
migrations.AddField( | ||
model_name='inlinemodel', | ||
name='simple_name', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='demo.SimpleName'), | ||
), | ||
migrations.AddField( | ||
model_name='inlinemodel', | ||
name='simple_names', | ||
field=models.ManyToManyField(to='demo.ManyToManyToSimpleName'), | ||
), | ||
migrations.AddField( | ||
model_name='foreignkeytosimplename', | ||
name='simple_name', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='demo.SimpleName'), | ||
), | ||
] |
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% extends 'base.html' %} | ||
{% load staticfiles %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.