| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
fields consistent.
Prior to this change proxy models reverse fields didn't include the
reverse fields pointing to their concrete model.
|
|
|
|
|
|
| |
proxy models.
Thanks to James Murty for his work on an alternate patch.
|
|
|
|
|
|
|
| |
deletion.
This isn't required anymore now that reverse foreign keys
from proxy models are propagated to their concrete model.
|
|
|
|
| |
related_query_name to the admin's delete confirmation page.
|
| |
|
|
|
|
| |
number of deleted objects.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
models in multi-table inheritance.
|
|
|
|
|
|
|
| |
one_to_many.
Thanks Carl Meyer and Tim Graham for the reviews and to all involved
in the discussion.
|
| |
|
|
|
|
|
|
|
| |
retrieving fields.
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
|
|
|
|
|
|
| |
3282.
Thanks Collin Anderson for the review.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on SQLite
SQLite doesn't work with more than 1000 parameters in a single query.
The deletion code could generate queries that try to get related
objects for more than 1000 objects thus breaking the limit. Django now
splits the related object fetching into batches with at most 1000
parameters.
The tests and patch include some work done by Trac alias NiGhTTraX in
ticket #21205.
|
| |
|
|
|
|
| |
deprecation timeline.
|
|
|
|
| |
Thanks Piotr Kasprzyk for help with the patch.
|
| |
|
|
|
|
|
|
| |
on functions.
Refs #20978.
|
|
|
|
| |
MigrationWriter.serialize.
|
|
|
|
| |
comprehensions.
|
|
|
|
|
|
| |
collections.OrderedDict)
Thanks Loic Bistuer for the review.
|
|
|
|
|
| |
The commit of 266de5f9ae9e9f2fbfaec3b7e4b5fb9941967801 included only
tests, this time also code changes included...
|
|
|
|
| |
operations atomic.
|
|
|
|
| |
It's synchronized with the autocommit flag.
|
|
|
|
|
|
|
|
| |
Since "unless managed" now means "if database-level autocommit",
committing or rolling back doesn't have any effect.
Restored transactional integrity in a few places that relied on
automatically-started transactions with a transitory API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
enter_transaction_management() was nearly always followed by managed().
In three places it wasn't, but they will all be refactored eventually.
The "forced" keyword argument avoids introducing behavior changes until
then.
This is mostly backwards-compatible, except, of course, for managed
itself. There's a minor difference in _enter_transaction_management:
the top self.transaction_state now contains the new 'managed' state
rather than the previous one. Django doesn't access
self.transaction_state in _enter_transaction_management.
|
| |
|
|
|
|
|
|
|
|
|
| |
In a normal relational construct, if you're listening for an event
that signals a child was deleted, you dont expect that the parent
was deleted already.
This change ensures that post_delete signals are fired immediately
after objects are deleted in the graph.
|
|
|
|
| |
Meyer for noticing it).
|
|
|
|
|
|
|
|
|
| |
Objects can be fast-path deleted if there are no signals, and there are
no further cascades. If fast-path is taken, the objects do not need to
be loaded into memory before deletion.
Thanks to Jeremy Dunck, Simon Charette and Alex Gaynor for reviewing
the patch.
|
| |
|
| |
|
|
|
|
|
|
| |
of concrete subclass. Thanks Simon Charette for report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17887 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
sorting deletions for databases without deferred constraints. Thanks Nate Bragg for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
if they were the concrete model class. Thanks xkennyx for the report, and Aymeric Augustin, Claude Paroz, Adam Nelson, jaap3, and Anssi Kääriäinen for work on the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17664 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
Thanks, Bernhard Essl.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
Aymeric Augustin for the work on the patch and Alex for reviewing.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
|
|
|
| |
nullable foreign keys
Many thanks to aaron.l.madison for the detailed report and to emulbreh for
the fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
don't support that version. Refs #15702 -- thanks to jonash for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
| |
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
on_delete=PROTECT. Thanks to jtiai for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
inherited models.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
deletion.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15243 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
ForeignKey to control cascade behavior. Also refactored deletion for efficiency and code clarity. Many thanks to Johannes Dollinger and Michael Glassford for extensive work on the patch, and to Alex Gaynor, Russell Keith-Magee, and Jacob Kaplan-Moss for review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14507 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|