Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/contrib/contenttypes
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25611 -- Standardized descriptor signatures.Tim Graham2015-10-261-1/+1
|
* Refs #13637 -- Removed unused code in ↵Tim Graham2015-10-021-7/+1
| | | | | | GenericRelatedObjectManager Appears unused since 585b7acaa359fc1df07269c1a4b4756bdb6703f7.
* Refs #24099 -- Removed compatibility shim for ↵Tim Graham2015-09-241-11/+0
| | | | ContentType.name field.
* Renamed descriptor classes for related objects.Aymeric Augustin2015-09-211-6/+5
| | | | | | | | | | | | 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.
* Fixed #25374 -- Made ModelAdmin checks work on instances ↵Malcolm Box2015-09-111-14/+14
| | | | | | | instead of classes. This allows dynamically-generated attributes to be specified in checked ModelAdmin attributes without triggering errors.
* Fixed #24201 -- Added order_with_respect_to support to ↵Alex Hill2015-08-271-1/+31
| | | | GenericForeignKey.
* Fixed #25160 -- Moved unsaved model instance data loss ↵Tim Graham2015-08-101-7/+0
| | | | | | | | | check to Model.save() This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and 81e1a35c364e5353d2bf99368ad30a4184fbb653. Thanks Carl Meyer for review.
* Fixed #18556 -- Allowed RelatedManager.add() to execute ↵Tim Graham2015-07-281-9/+33
| | | | | | 1 query where possible. Thanks Loic Bistuer for review.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-0/+1
| | | | on_delete for ForeignKey/OneToOneField
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-2/+2
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Updated translations from TransifexClaude Paroz2015-04-302-3/+4
| | | | | Updates for languages: Indonesian, Belarusian, Persian, and Dutch. Forward port of cb370f8510 from stable/1.8.x
* Fetched updated contrib translations from TransifexClaude Paroz2015-04-01166-812/+233
| | | | Forward port of 5483c66f85 from stable/1.8.x
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-253-14/+15
| | | | | | | | 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.
* Fixed #24495 -- Allowed unsaved model instance ↵Karl Hobley2015-03-191-1/+3
| | | | assignment check to be bypassed.
* Fixed #24351, #24346 -- Changed the signature of ↵Loic Bistuer2015-02-202-1/+2
| | | | | | | | | | | | | | | | 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.
* Moved contrib.contenttypes tests out of contrib.Tim Graham2015-02-163-333/+0
|
* Refs #24299 -- Made contenttypes migrations signal ↵Sergey Fedoseev2015-02-162-13/+38
| | | | handler more robust.
* Explicitly checked for LookupError in contenttypes migrationMarkus Holtermann2015-02-161-1/+1
|
* Reworked docstrings and comments in related.py.Loic Bistuer2015-02-161-24/+32
| | | | Thanks Tim Graham for the review.
* Merged ManyRelatedObjectsDescriptor and ↵Loic Bistuer2015-02-161-63/+36
| | | | | | | ReverseManyRelatedObjectsDescriptor and made all "many" related objects descriptors inherit from ForeignRelatedObjectsDescriptor.
* Fixed #24289 -- Reversed usage of Field.many_to_one and ↵Loic Bistuer2015-02-131-4/+4
| | | | | | | one_to_many. Thanks Carl Meyer and Tim Graham for the reviews and to all involved in the discussion.
* Revert "Fixed #24075 -- Prevented running post_migrate ↵Markus Holtermann2015-02-072-22/+1
| | | | | | signals when unapplying initial migrations of contenttypes and auth" This reverts commit 737d24923ac69bb8b89af1bb2f3f4c4c744349e8.
* Revert "Refs #24075 -- Silenced needless call_command ↵Markus Holtermann2015-02-071-2/+2
| | | | | | output while running tests" This reverts commit 51dc617b21e67636d96cf645905797a4d6ff4bf0.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-068-13/+15
|
* Fix small regression caused by ↵Loic Bistuer2015-02-051-4/+4
| | | | | | | | | | | 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.
* Fixed #6707 -- Added RelatedManager.set() and made ↵Loic Bistuer2015-02-051-9/+26
| | | | | | descriptors' __set__ use it. Thanks Anssi Kääriäinen, Carl Meyer, Collin Anderson, and Tim Graham for the reviews.
* Fixed #24210 -- Cleaned up relational fields __init__().Loic Bistuer2015-01-271-20/+25
| | | | Thanks Collin Anderson and Tim Graham for the reviews.
* Removed contrib.contenttypes.generic per deprecation ↵Tim Graham2015-01-181-21/+0
| | | | timeline; refs #19774.
* Updated en translation catalogsClaude Paroz2015-01-171-5/+5
| | | | Forward port of 666c12e52 from stable/1.8.x
* Fixed #24099 -- Removed contenttype.name deprecated fieldClaude Paroz2015-01-164-24/+82
| | | | | | This finsishes the work started on #16803. Thanks Simon Charette, Tim Graham and Collin Anderson for the reviews.
* Refs #24075 -- Silenced needless call_command output ↵Markus Holtermann2015-01-151-2/+2
| | | | | | while running tests Thanks Tim Graham for the report
* Fixed #24075 -- Prevented running post_migrate signals ↵Markus Holtermann2015-01-142-1/+25
| | | | | | 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.
* Removed an undocumented contenttypes synchronization method.Simon Charette2015-01-091-9/+0
|
* Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen2015-01-081-2/+1
| | | | | | | | | | | | | | | 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.
* Removed unneeded smart_text callsClaude Paroz2015-01-081-5/+3
| | | | `verbose_name_raw` return value comes from `force_text()` anyway.
* Fixed #12663 -- Formalized the Model._meta API for ↵Daniel Pyrathon2015-01-071-4/+23
| | | | | | | retrieving fields. Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
* Fixed #9104 -- Moved FieldDoesNotExist to core.exceptionsDaniel Pyrathon2015-01-022-3/+3
|
* Fixed #21414 -- Removed RelatedObject and deprecated ↵Anssi Kääriäinen2014-12-231-1/+2
| | | | Field.related.
* Fixed #24002 -- GenericRelation filtering targets ↵Anssi Kääriäinen2014-12-171-1/+1
| | | | | | | | | 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.
* Fixed #23822 -- Added support for serializing model ↵Markus Holtermann2014-12-152-0/+5
| | | | | | | 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.
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-6/+6
| | | | generators and dict comprehension
* Fixed #23641 -- Moved post_migrate signals for contrib ↵wrwrwr2014-11-272-4/+4
| | | | apps to AppConfig.ready().
* Fixed #14030 -- Allowed annotations to accept all ↵Josh Smeaton2014-11-151-1/+1
| | | | expressions
* Fixed #23750 -- Allowed core.checks.register to be used ↵averybigant2014-11-111-1/+1
| | | | as a function
* Limited lines to 119 characters in django/{contrib,db}.Berker Peksag2014-10-291-1/+4
| | | | Refs #23395.
* Fixed #23611 -- update_or_create failing from a related ↵Loic Bistuer2014-10-071-0/+14
| | | | | | | | manager Added update_or_create to RelatedManager, ManyRelatedManager and GenericRelatedObjectManager. Added missing get_or_create to GenericRelatedObjectManager.
* Fixed #15089 -- Allowed contrib.sites to lookup the ↵Tim Graham2014-10-011-1/+1
| | | | | | | current site based on request.get_host(). Thanks Claude Paroz, Riccardo Magliocchetti, and Damian Moore for contributions to the patch.
* Updated translations from TransifexClaude Paroz2014-09-3012-22/+27
| | | | Forward port of e9c8aefbcee5 from stable/1.7.x
* Fixed #23539 -- Added get_extra(), get_max_num(), and ↵Justin Caratzas2014-09-241-3/+3
| | | | get_min_num() hooks to GenericInlineModelAdmin.
* Fixed #22411: Throw a more helpful error if contenttypes ↵Andrew Godwin2014-09-051-0/+6
| | | | doesn't exist.