-
-
Notifications
You must be signed in to change notification settings - Fork 25
Resolved bug cloning models with UniqueConstraint. #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jackton1
merged 24 commits into
main
from
feature/resolve-bug-cloning-models-with-unique-constraints
Jul 18, 2021
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
6116787
Resolved bug cloning models with UniqueConstraint.
61d06d7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b0d55cb
Fixed test.
ec5cce4
Merge branch 'feature/resolve-bug-cloning-models-with-unique-constrai…
1c94712
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 558b748
Fixed test.
5f416dd
Merge branch 'feature/resolve-bug-cloning-models-with-unique-constrai…
a2c0757
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 69654e1
Fixed test.
dcaa106
Merge branch 'feature/resolve-bug-cloning-models-with-unique-constrai…
a6fb5f7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 74a6343
Fixed test.
9953467
Merge branch 'feature/resolve-bug-cloning-models-with-unique-constrai…
0c58ed2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e50d4fa
Updated test.
a57a9d9
Merge branch 'feature/resolve-bug-cloning-models-with-unique-constrai…
43aceea
Updated test.
d418ab2
Updated test.
7e15f89
Update utils.py
jackton1 9910189
Update test_clone_mixin.py
jackton1 ea7e07a
Update test_clone_mixin.py
jackton1 4e22321
Update test_clone_mixin.py
jackton1 20d24c9
Update test_clone_mixin.py
jackton1 20619ef
Update utils.py
jackton1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Resolved bug cloning models with UniqueConstraint.
- Loading branch information
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,18 @@ | ||
| # Generated by Django 3.2.5 on 2021-07-17 20:26 | ||
|
|
||
| import django | ||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('sample', '0018_auto_20210628_2301'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddConstraint( | ||
| model_name='saletag', | ||
| constraint=models.UniqueConstraint(fields=('name',), name='sale_tag_unique_name'), | ||
| ), | ||
| ] if django.VERSION >= (2, 2) else [] |
This file contains hidden or 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,23 @@ | ||
| # Generated by Django 3.2.5 on 2021-07-17 22:30 | ||
| import django | ||
| from django.db import migrations, models | ||
| import sample.models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('sample', '0019_saletag_sale_tag_unique_name'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterField( | ||
| model_name='tag', | ||
| name='name', | ||
| field=models.CharField(default=sample.models.get_unique_tag_name, max_length=255), | ||
| ), | ||
| migrations.AddConstraint( | ||
| model_name='tag', | ||
| constraint=models.UniqueConstraint(fields=('name',), name='tag_unique_name'), | ||
| ), | ||
| ] if django.VERSION >= (2, 2) else [] |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.