| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
model option.
Thanks to Tim for the review.
|
|
|
|
|
|
|
| |
fields consistent.
Prior to this change proxy models reverse fields didn't include the
reverse fields pointing to their concrete model.
|
|
|
|
|
|
| |
proxy to concrete models.
Thanks to Anssi for the review.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Moved the lookup in Field.swappable_setting to Apps, and added
an lru_cache to cache the results.
Refs #24743
Thanks Marten Kenbeek for the initial work on the patch. Thanks Aymeric
Augustin and Tim Graham for the review.
|
| |
|
|
|
|
|
| |
Forwardport of ae1d663b7913f6da233c55409c4973248372d302
from stable/1.8.x plus more.
|
| |
|
|
|
|
| |
Model._meta
|
|
|
|
|
|
|
| |
feature/vendor
Thanks Carl Meyer for the report and review, and Tim Graham for the
review.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
implementation
|
|
|
|
|
|
|
| |
one_to_many.
Thanks Carl Meyer and Tim Graham for the reviews and to all involved
in the discussion.
|
|
|
|
| |
used after apps.models_ready
|
| |
|
|
|
|
|
|
| |
ordered by MRO.
Thanks to Aron Podrigal for the initial patch and Tim for the review.
|
|
|
|
|
|
|
|
| |
regression in admin checks."
This reverts commit e8171daf0cd7f0e070395cb4c850c17fea32f11d.
A new solution is forthcoming.
|
|
|
|
|
|
|
|
| |
admin checks.
This allows using get_field() early in the app loading process.
Thanks to PirosB3 and Tim Graham.
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
managers to be in a single list.
This commit prepares the internal manager layout to be serialized by
migrations; refs #23822.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The reason for the regression was that the GenericForeignKey field isn't
something meta.get_field_by_name() should return. The reason is that a
couple of places in Django expects get_field_by_name() to work this way.
It could make sense to return GFKs from get_field_by_name(), but that
should likely be done as part of meta refactoring or virtual fields
refactoring patches.
Thanks to glicerinu@gmail.com for the report and to Tim for working on
the issue.
|
|
|
|
|
|
| |
default_related_name.
Thanks jorgecarleitao and mmardini for reviews.
|
| |
|
| |
|
|
|
|
| |
refs #19689.
|
|
|
|
| |
methods per deprecation timeline.
|
|
|
|
|
|
|
| |
to-be-removed-in-django-XX warnings
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|
|
|
|
|
|
|
|
|
|
|
| |
reverse lookups
GenericRelation now supports an optional related_query_name argument.
Setting related_query_name adds a relation from the related object back to
the content type for filtering, ordering and other query operations.
Thanks to Loic Bistuer for spotting a couple of important issues in
his review.
|
|
|
|
|
|
| |
list (rather than list of lists)..
Thanks EmilStenstrom for the suggestion.
|
|
|
|
|
|
|
|
|
|
|
| |
framework
This is the result of Christopher Medrela's 2013 Summer of Code project.
Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian
Apolloner, and Alex Gaynor for review notes along the way.
Also: Fixes #8579, fixes #3055, fixes #19844.
|
| |
|
|
|
|
| |
Refs #15903, #15866, #15850.
|
| |
|
| |
|
|
|
|
|
|
| |
Also renamed app_cache to apps and "app cache" to "app registry".
Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
|
|
|
|
| |
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
|
|
|
|
|
|
|
|
|
|
| |
It was called _populate() before I renamed it to populate(). Since it
has been superseded by populate_models() there's no reason to keep it.
Removed the can_postpone argument of load_app() as it was only used by
populate(). It's a private API and there's no replacement. Simplified
load_app() accordingly. Then new version behaves exactly like the old
one even though it's much shorter.
|
|
|
|
|
|
|
|
|
| |
Since applications that aren't installed no longer have an application
configuration, it is now always True in practice.
Provided an abstraction to temporarily add or remove applications as
several tests messed with app_config.installed to achieve this effect.
For now this API is _-prefixed because it looks dangerous.
|
|
|
|
|
|
|
|
| |
Used the information from the app cache instead of creating a duplicate
based on INSTALLED_APPS.
Model._meta.installed is no longer writable. It was a rather sketchy way
to alter private internals anyway.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since the original ones in django.db.models.loading were kept only for
backwards compatibility, there's no need to recreate them. However, many
internals of Django still relied on them.
They were also imported in django.db.models. They never appear in the
documentation, except a quick mention of get_models and get_app in the
1.2 release notes to document an edge case in GIS. I don't think that
makes them a public API.
This commit doesn't change the overall amount of global state but
clarifies that it's tied to the app_cache object instead of hiding it
behind half a dozen functions.
|
|
|
|
| |
This commit doesn't contain any code changes; it's purely a refactoring.
|
|
|
|
| |
unhashable elements.
|
|
|
|
| |
Thanks to Tim for the review.
|