| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
GenericRelatedObjectManager
Appears unused since 585b7acaa359fc1df07269c1a4b4756bdb6703f7.
|
|
|
|
| |
ContentType.name field.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The old names were downright confusing. Some seemed to mean the opposite
of what the class actually did.
The new names follow a consistent nomenclature:
(Forward|Reverse)(ManyToOne|OneToOne|ManyToMany)Descriptor.
I mentioned combinations that do not exist in the docstring in order to
help people who would search for them in the code base.
|
|
|
|
|
|
|
| |
instead of classes.
This allows dynamically-generated attributes to be specified in
checked ModelAdmin attributes without triggering errors.
|
|
|
|
| |
GenericForeignKey.
|
|
|
|
|
|
|
|
|
| |
check to Model.save()
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and
81e1a35c364e5353d2bf99368ad30a4184fbb653.
Thanks Carl Meyer for review.
|
|
|
|
|
|
| |
1 query where possible.
Thanks Loic Bistuer for review.
|
|
|
|
| |
on_delete for ForeignKey/OneToOneField
|
|
|
|
|
| |
Forwardport of ae1d663b7913f6da233c55409c4973248372d302
from stable/1.8.x plus more.
|
|
|
|
|
| |
Updates for languages: Indonesian, Belarusian, Persian, and Dutch.
Forward port of cb370f8510 from stable/1.8.x
|
|
|
|
| |
Forward port of 5483c66f85 from stable/1.8.x
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
assignment check to be bypassed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
handler more robust.
|
| |
|
|
|
|
| |
Thanks Tim Graham for the review.
|
|
|
|
|
|
|
| |
ReverseManyRelatedObjectsDescriptor
and made all "many" related objects descriptors inherit from
ForeignRelatedObjectsDescriptor.
|
|
|
|
|
|
|
| |
one_to_many.
Thanks Carl Meyer and Tim Graham for the reviews and to all involved
in the discussion.
|
|
|
|
|
|
| |
signals when unapplying initial migrations of contenttypes and auth"
This reverts commit 737d24923ac69bb8b89af1bb2f3f4c4c744349e8.
|
|
|
|
|
|
| |
output while running tests"
This reverts commit 51dc617b21e67636d96cf645905797a4d6ff4bf0.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
71ada3a8e689a883b5ffdeb1744ea16f176ab730.
During direct assignment, evaluating the iterable before the transaction
is started avoids leaving the transaction dirty if an exception is raised.
This is slightly more wasteful but probably not enough to warrant a change
of behavior.
Thanks Anssi for the feedback. Refs #6707.
|
|
|
|
|
|
| |
descriptors' __set__ use it.
Thanks Anssi Kääriäinen, Carl Meyer, Collin Anderson, and Tim Graham for the reviews.
|
|
|
|
| |
Thanks Collin Anderson and Tim Graham for the reviews.
|
|
|
|
| |
timeline; refs #19774.
|
|
|
|
| |
Forward port of 666c12e52 from stable/1.8.x
|
|
|
|
|
|
| |
This finsishes the work started on #16803.
Thanks Simon Charette, Tim Graham and Collin Anderson for the
reviews.
|
|
|
|
|
|
| |
while running tests
Thanks Tim Graham for the report
|
|
|
|
|
|
| |
when unapplying initial migrations of contenttypes and auth
Thanks Florian Apolloner for the report and Claude Paroz and Tim Graham for the review and help on the patch.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Refactored compiler SELECT, GROUP BY and ORDER BY generation.
While there, also refactored select_related() implementation
(get_cached_row() and get_klass_info() are now gone!).
Made get_db_converters() method work on expressions instead of
internal_type. This allows the backend converters to target
specific expressions if need be.
Added query.context, this can be used to set per-query state.
Also changed the signature of database converters. They now accept
context as an argument.
|
|
|
|
| |
`verbose_name_raw` return value comes from `force_text()` anyway.
|
|
|
|
|
|
|
| |
retrieving fields.
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
|
| |
|
|
|
|
| |
Field.related.
|
|
|
|
|
|
|
|
|
| |
related model's pk
Previously Publisher.objects.filter(book=val) would target
book.object_id if book is a GenericRelation. This is inconsistent to
filtering over reverse foreign key relations, where the target is the
related model's primary key.
|
|
|
|
|
|
|
| |
managers in migration
Thanks to Shai Berger, Loïc Bistuer, Simon Charette, Andrew Godwin,
Tim Graham, Carl Meyer, and others for their review and input.
|
|
|
|
| |
generators and dict comprehension
|
|
|
|
| |
apps to AppConfig.ready().
|
|
|
|
| |
expressions
|
|
|
|
| |
as a function
|
|
|
|
| |
Refs #23395.
|
|
|
|
|
|
|
|
| |
manager
Added update_or_create to RelatedManager, ManyRelatedManager and
GenericRelatedObjectManager.
Added missing get_or_create to GenericRelatedObjectManager.
|
|
|
|
|
|
|
| |
current site based on request.get_host().
Thanks Claude Paroz, Riccardo Magliocchetti, and Damian Moore
for contributions to the patch.
|
|
|
|
| |
Forward port of e9c8aefbcee5 from stable/1.7.x
|
|
|
|
| |
get_min_num() hooks to GenericInlineModelAdmin.
|
|
|
|
| |
doesn't exist.
|