| Age | Commit message (Collapse) | Author |
|
directories without __init__.py file."
This reverts commit 3cd3bebe8921e14b911b36b2a1cbceef8fb6294e.
Backport of ff55adbd0da6618abaf265d16196bf54f81aa77a from master
|
|
with mixed case label.
Regression in 9e1b6b8a66af4c2197e5b1b41eb9dbb36e4f6502.
Thanks Ignacio Santolin for the report.
Backport of 62d85a283500e9abb0e1c9ec53c59be468f056a0 from master
|
|
Backport of 42de52affe20e399554d984cc7848bf8e0368b41 from master
|
|
creation on base fields removal.
Removing a base field must take place before adding a new inherited
model that has a field with the same name.
Backport of 33c365781abbcc1b21a31b31d95d344a174df0d5 from master
|
|
|
|
|
|
|
|
test_regression_22823_unmigrated_fk_to_migrated_model.
|
|
test_makemigrations_non_interactive_not_null_addition.
|
|
unique_together constraint on the same fields.
|
|
This allows the removal of its O(n) .get_field_by_name method and many
other awkward access patterns.
While fields were initially stored in a list to preserve the initial
model definiton field ordering the auto-detector doesn't take field
ordering into account and no operations exists to reorder fields of a
model.
This makes the preservation of the field ordering completely superflous
because field reorganization after the creation of the model state
wouldn't be taken into account.
|
|
|
|
The existing code was only accounting for primary key changes and not
all unique key fields that can be referenced.
|
|
data type change on SQLite.
Both local and remote auto-created many-to-many relationships were
affected.
|
|
|
|
This will allow them to drop a ton of logic to deal with null
app_label.
|
|
This paved the way for the removal of lot of logic when app_label was
not specified.
|
|
non-relational changes.
Thanks Markus Holtermann for initial test.
Fixed in 1d16c5d562a67625f7309cc7765b8c57d49bf182.
|
|
Delayed reloads of state models broke identity based relationships
between direct and non-direct ancestors.
Basing models.Options related objects map of model labels instead of
their identity ensured relationship consistency is maintained.
Refs #30966.
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
|
|
Command exits with non-zero status if unapplied migrations exist.
|
|
changes.
Made autodetector ignore related model name case changes so unnecessary
migrations are not created.
|
|
|
|
names in sqlmigrate.
|
|
|
|
Thanks Adam Johnson for the report.
Fixed in 306b6875209cfedce2536a6679e69adee7c9bc6a.
|
|
- Used selected "databases" instead of django.db.connections.
- Made routers in tests.migrations skip migrations on unexpected
databases.
- Added DiscoverRunnerGetDatabasesTests.assertSkippedDatabases() hook
which properly asserts messages about skipped databases.
|
|
We assumed that any OneToOneField's in a child model must be the
parent link and raised an error when parent_link=True was not
specified. This patch allows to specify multiple OneToOneField's to
the parent model.
OneToOneField's without a custom related_name will raise fields.E304
and fields.E305 so this should warn users when they try to override
the auto-created OneToOneField.
|
|
|
|
DeconstructibleInstances was not importable from the asserted path.
|
|
|
|
MigrateTests.test_migrate_fake_initial_case_insensitive() crash on Oracle.
|
|
case-insensitive.
Thanks Simon Charette for the review.
|
|
* assertIsNone()/assertIsNotNone() instead of comparing to None.
* assertLess() for < comparisons.
* assertIs() for 'is' expressions.
* assertIsInstance() for isinstance() expressions.
* rounding of assertAlmostEqual() for round() expressions.
* assertIs(..., True/False) instead of comparing to True/False.
* assertIs()/assertIsNot() for ==/!= comparisons.
* assertNotEqual() for == comparisons.
* assertTrue()/assertFalse() instead of comparing to True/False.
|
|
migrate --plan.
Thanks Hasan Ramezani for the initial patch and Kyle Dickerson for the
report.
|
|
|
|
Regression introduced by dcdd219ee1, refs #25817.
Thanks Carlos E. C. Leite for the report and Mariusz for the bisect.
|
|
__init__.py file.
|
|
|
|
WriterTests.test_serialize_enums().
|
|
|
|
on MySQL 8.0.16+.
|
|
altering type of referenced unique field.
Thanks Mariusz Felisiak for tests and Matthijs Kooijman for
investigation and initial patch.
|
|
These classes can serve as a base class for user enums, supporting
translatable human-readable names, or names automatically inferred
from the enum member name.
Additional properties make it easy to access the list of names, values
and display labels.
Thanks to the following for ideas and reviews:
Carlton Gibson, Fran Hrženjak, Ian Foote, Mariusz Felisiak, Shai Berger.
Co-authored-by: Shai Berger <shai@platonix.com>
Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
keys altering.
|
|
operations for PostgreSQL.
Thanks to Simon Charettes for review.
Co-Authored-By: Daniel Tao <daniel.tao@gmail.com>
|
|
Co-Authored-By: Daniel Tao <daniel.tao@gmail.com>
|
|
|
|
|
|
|
|
commands.
|