Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/1.2: bump 1.2 fixes skipif/skipIf typo updates CHANGES Changed test for admin list editable Changed view errors for ConcurrencyListEditableMixin For ConditionalVersionField get_fields() returns too many fields Check that ConditionalVersionField can be used even if ConcurrencyMeta is missing compatibility 1.9 open v1.2
- Loading branch information
Showing
13 changed files
with
175 additions
and
24 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
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
1 change: 0 additions & 1 deletion
1
src/concurrency/templates/concurrency/delete_selected_confirmation.html
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
28 changes: 28 additions & 0 deletions
28
tests/demoapp/demo/migrations/0002_conditionalversionmodelwithoutmeta.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,28 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
from django.conf import settings | ||
import concurrency.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('demo', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ConditionalVersionModelWithoutMeta', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, verbose_name='ID', serialize=False, primary_key=True)), | ||
('version', concurrency.fields.ConditionalVersionField(default=1, help_text='record revision number')), | ||
('field1', models.CharField(unique=True, blank=True, max_length=30, null=True)), | ||
('field2', models.CharField(unique=True, blank=True, max_length=30, null=True)), | ||
('field3', models.CharField(unique=True, blank=True, max_length=30, null=True)), | ||
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, null=True)), | ||
], | ||
), | ||
] |
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,27 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('demo', '0002_conditionalversionmodelwithoutmeta'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Anything', | ||
fields=[ | ||
('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)), | ||
('name', models.CharField(max_length=10)), | ||
('a_relation', models.ForeignKey(to='demo.ConditionalVersionModelWithoutMeta')), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name='conditionalversionmodelwithoutmeta', | ||
name='anythings', | ||
field=models.ManyToManyField(to='demo.Anything'), | ||
), | ||
] |
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
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