-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from kckaiwei/master
adding support for manager class w/ test
- Loading branch information
Showing
8 changed files
with
120 additions
and
6 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
setup( | ||
name='jsonate', | ||
version='0.5.0', | ||
version='0.5.1', | ||
|
||
author='James Robert', | ||
author_email='[email protected]', | ||
|
30 changes: 30 additions & 0 deletions
30
test_project/test_app/migrations/0004_auto_20180914_1341.py
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,30 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.15 on 2018-09-14 13:41 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import jsonate.fields | ||
import test_app.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('test_app', '0003_withjsonatefieldexpectinglist'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='MyModelWithRelation', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=100)), | ||
('many_to_many', models.ManyToManyField(related_name='many_to_my_model', to='test_app.MyModel')), | ||
], | ||
), | ||
migrations.AlterField( | ||
model_name='withjsonatefieldexpectinglist', | ||
name='some_json_data', | ||
field=jsonate.fields.JsonateField(default=[], validators=[test_app.models.validate_list]), | ||
), | ||
] |
26 changes: 26 additions & 0 deletions
26
test_project/test_app/migrations/0005_auto_20180914_1343.py
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,26 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.15 on 2018-09-14 13:43 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('test_app', '0004_auto_20180914_1341'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='mymodelwithrelation', | ||
name='many_to_many', | ||
), | ||
migrations.AddField( | ||
model_name='mymodelwithrelation', | ||
name='many_to_many', | ||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='many_to_my_model', to='test_app.MyModel'), | ||
preserve_default=False, | ||
), | ||
] |
20 changes: 20 additions & 0 deletions
20
test_project/test_app/migrations/0006_auto_20180914_1352.py
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,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.15 on 2018-09-14 13:52 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('test_app', '0005_auto_20180914_1343'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='mymodelwithrelation', | ||
old_name='many_to_many', | ||
new_name='to_many', | ||
), | ||
] |
24 changes: 24 additions & 0 deletions
24
test_project/test_app/migrations/0007_auto_20180914_1355.py
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,24 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.15 on 2018-09-14 13:55 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('test_app', '0006_auto_20180914_1352'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='mymodelwithrelation', | ||
name='to_many', | ||
), | ||
migrations.AddField( | ||
model_name='mymodelwithrelation', | ||
name='to_many', | ||
field=models.ManyToManyField(related_name='many_to_my_model', to='test_app.MyModel'), | ||
), | ||
] |
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