| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
model option.
Thanks to Tim for the review.
|
|
|
|
| |
pollution when create() fails due to an unsaved object.
|
|
|
|
| |
GenericForeignKey.
|
|
|
|
| |
collision when using model inheritance.
|
|
|
|
|
|
|
|
|
| |
check to Model.save()
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and
81e1a35c364e5353d2bf99368ad30a4184fbb653.
Thanks Carl Meyer for review.
|
|
|
|
| |
on_delete for ForeignKey/OneToOneField
|
|
|
|
| |
number of deleted objects.
|
|
|
|
| |
Model._meta
|
|
|
|
|
|
| |
to O2O fields.
Thanks Anssi Kääriäinen for review.
|
|
|
|
|
|
|
| |
This adds a new method, Apps.lazy_model_operation(), and a helper function,
lazy_related_operation(), which together supersede add_lazy_relation() and
make lazy model operations the responsibility of the App registry. This
system no longer uses the class_prepared signal.
|
|
|
|
|
|
|
|
| |
Field.rel is now deprecated. Rel objects have now also remote_field
attribute. This means that self == self.remote_field.remote_field.
In addition, made the Rel objects a bit more like Field objects. Still,
marked ManyToManyFields as null=True.
|
| |
|
|
|
|
| |
ordering and order_wrt.
|
|
|
|
| |
models in multi-table inheritance.
|
|
|
|
|
|
|
| |
null fk
Thanks Johannes Lerch for the report, Tim Graham for the test case,
and Simon Charette for the review.
|
|
|
|
| |
implementation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
allow_migrate().
The new signature enables better support for routing RunPython and
RunSQL operations, especially w.r.t. reusable and third-party apps.
This commit also takes advantage of the deprecation cycle for the old
signature to remove the backward incompatibility introduced in #22583;
RunPython and RunSQL won't call allow_migrate() when when the router
has the old signature.
Thanks Aymeric Augustin and Tim Graham for helping shape up the patch.
Refs 22583.
|
|
|
|
|
|
| |
Removed fragile algorithm to find which application a model belongs to.
Fixed #21680, #21719. Refs #21794.
|
| |
|
|
|
|
| |
model multi-inheritance.
|
| |
|
|
|
|
| |
Thanks to Tim for the review.
|
|
|
|
|
|
|
|
| |
The method is mainly intended for use with UUIDField. For UUIDField we
want to call the field's default even when primary key value is
explicitly set to None to match the behavior of AutoField.
Thanks to Marc Tamlyn and Tim Graham for review.
|
| |
|
|
|
|
|
|
|
| |
retrieving fields.
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
|
| |
|
|
|
|
|
|
|
| |
unpickling models
This prevents AppRegistryNotReady errors when unpickling Django
models from an external script.
|
|
|
|
|
|
|
| |
managers to be in a single list.
This commit prepares the internal manager layout to be serialized by
migrations; refs #23822.
|
|
|
|
|
| |
Thanks to github aliases dbrgn, carljm, slurms, dfunckt, and timgraham
for reviews.
|
|
|
|
| |
models outside an app.
|
| |
|
|
|
|
|
|
| |
Made _do_update behave more strictly according to its docs,
including a corner case when specific concurent updates are
executed and select_on_save is set.
|
|
|
|
|
|
|
| |
models that don't define get_absolute_url().
Thanks jukvalim for the report and initial patch,
and Preston Timmons for review.
|
|
|
|
| |
refs #23395.
|
| |
|
|
|
|
|
|
|
|
|
| |
The Model.from_db() is intended to be used in cases where customization
of model loading is needed. Reasons can be performance, or adding custom
behavior to the model (for example "dirty field tracking" to issue
automatic update_fields when saving models).
A big thank you to Tim Graham for the review!
|
| |
|
|
|
|
|
|
| |
auto-generated column name is within limits of the database.
Thanks russellm for report and Tim Graham for review.
|
|
|
|
|
|
|
| |
Models and QuerySets from a different Django version.
Thanks FunkyBob for the suggestion, prasoon2211 for the initial patch,
and akaariai, loic, and charettes for helping in shaping the patch.
|
|
|
|
|
|
| |
containing fields.
Removed the FieldError raised by ModelBase.__new__ in this case.
|
|
|
|
|
|
| |
implicit relation fields.
refs #19195.
|
| |
|
|
|
|
|
| |
Now this method is only called only if the object is an instance.
This allows to have field classes as model class attributes.
|
|
|
|
| |
Model.full_clean() to prevent side effects.
|
|
|
|
|
|
| |
No more `NewBase` horrors.
Thanks to bendavis78 for his work on merging this into six.
|
| |
|
|
|
|
| |
unique_together fields are local.
|
|
|
|
| |
Thanks Aymeric Augustin for the report and Tim Graham for the review.
|
|
|
|
| |
deprecation timeline.
|
|
|
|
|
|
|
| |
to-be-removed-in-django-XX warnings
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|