Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Fixed #25417 -- Added a field check for invalid ↵ | Simon Charette | 2015-10-27 | 1 | -17/+0 |
| | | | | | | default values." This reverts commit 71ebcb85b931f43865df5b322b2cf06d3da23f69. | ||||
* | Fixed #25550 -- Deprecated direct assignment to the ↵ | Tim Graham | 2015-10-27 | 2 | -1/+8 |
| | | | | reverse side of a related set. | ||||
* | Fixed #25611 -- Standardized descriptor signatures. | Tim Graham | 2015-10-26 | 2 | -5/+5 |
| | |||||
* | Fixed #25560 -- Made empty string related_name invalid. | Simon Charette | 2015-10-16 | 2 | -2/+2 |
| | | | | | Thanks to Ali Lotfi for the initial report and patch and Tim Graham for the review. | ||||
* | Refs #25535 -- Minor edits to ForeignObject check changes. | Tim Graham | 2015-10-14 | 1 | -5/+5 |
| | |||||
* | Fixed #25535 -- Made ForeignObject checks less strict. | Antoine Catton | 2015-10-13 | 1 | -6/+19 |
| | | | | | Check that the foreign object `from_fields` are a subset of any unique constraints on the foreign model. | ||||
* | Fixed #18012 -- Propagated reverse foreign keys from ↵ | Simon Charette | 2015-10-12 | 2 | -2/+2 |
| | | | | | | proxy to concrete models. Thanks to Anssi for the review. | ||||
* | Fixed #14368 -- Allowed setting a reverse OneToOne ↵ | Tim Graham | 2015-10-09 | 1 | -18/+28 |
| | | | | relation to None. | ||||
* | Fixed #25503 -- Fixed system check crash on ForeignKey ↵ | Mariusz Felisiak | 2015-10-07 | 1 | -1/+4 |
| | | | | to abstract model. | ||||
* | Fixed #21042 -- Allowed accessing FileDescriptor on the ↵ | Tim Graham | 2015-10-01 | 1 | -3/+1 |
| | | | | | | | model class. This is consistent with ability to reference other descriptors on the model class (5ef0c03ae9aca99289737ba6d88a371ad95cf432). | ||||
* | Refs #21414 -- Removed Field.related per deprecation ↵ | Tim Graham | 2015-09-24 | 1 | -10/+1 |
| | | | | timeline. | ||||
* | Refs #9893 -- Removed shims for lack of max_length ↵ | Tim Graham | 2015-09-24 | 1 | -15/+1 |
| | | | | support in file storage per deprecation timeline. | ||||
* | Removed SubfieldBase per deprecation timeline. | Tim Graham | 2015-09-24 | 1 | -63/+0 |
| | |||||
* | Documented "rel objects". | Aymeric Augustin | 2015-09-21 | 1 | -0/+11 |
| | | | | | Kept the docstring short because these objects aren't very well defined and they're in the crosshairs of several refactorings. | ||||
* | Renamed descriptor classes for related objects. | Aymeric Augustin | 2015-09-21 | 2 | -36/+41 |
| | | | | | | | | | | | | 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. | ||||
* | Added comments in related instances descriptors. | Aymeric Augustin | 2015-09-21 | 1 | -6/+23 |
| | |||||
* | Documented related models descriptors. | Aymeric Augustin | 2015-09-21 | 1 | -14/+141 |
| | | | | | Changed the poll / choices example to a more obvious parent / children. I think that reduces the cognitive load. | ||||
* | Fixed #22341 -- Split django.db.models.fields.related. | Aymeric Augustin | 2015-09-21 | 3 | -1191/+1213 |
| | | | | | | | At 2800 lines it was the largest module in the django package. This commit brings it down to a more manageable 1620 lines. Very small changes were performed to uniformize import style. | ||||
* | Fixed #24629 -- Unified Transform and Expression APIs | Josh Smeaton | 2015-09-21 | 1 | -164/+1 |
| | |||||
* | Fixed #25160 (again) -- Moved data loss check on reverse ↵ | Aymeric Augustin | 2015-09-19 | 1 | -6/+0 |
| | | | | | | | | relations. Moved data loss check when assigning to a reverse one-to-one relation on an unsaved instance to Model.save(). This is exactly the same change as e4b813c but for reverse relations. | ||||
* | Fixed #25417 -- Added a field check for invalid default ↵ | Simon Charette | 2015-09-18 | 1 | -0/+17 |
| | | | | values. | ||||
* | Fixed #24636 -- Added model field validation for decimal ↵ | Iulia Chiriac | 2015-09-18 | 1 | -0/+6 |
| | | | | places and max digits. | ||||
* | Fixed #23395 -- Limited line lengths to 119 characters. | Dražen Odobašić | 2015-09-12 | 1 | -5/+15 |
| | |||||
* | Removed obsolete TODO about moving ↵ | Tim Graham | 2015-09-01 | 1 | -1/+0 |
| | | | | CommaSeparatedIntegerField into contrib. | ||||
* | Fixed #25320 -- Reverted ManyToManyField.null to False ↵ | Tim Graham | 2015-09-01 | 1 | -3/+0 |
| | | | | | | for backwards compatibility. Thanks Tom Christie for the report and review. | ||||
* | Fixed #25331 -- Removed trailing blank lines in docstrings. | Maxime Lorant | 2015-08-31 | 1 | -1/+0 |
| | |||||
* | Fixed #24201 -- Added order_with_respect_to support to ↵ | Alex Hill | 2015-08-27 | 2 | -13/+37 |
| | | | | GenericForeignKey. | ||||
* | Fixed #24590 -- Cached calls to swappable_setting. | Markus Holtermann | 2015-08-27 | 1 | -11/+2 |
| | | | | | | | | | | 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. | ||||
* | Fixed #25172 -- Fixed check framework to work with ↵ | Ion Scerbatiuc | 2015-08-13 | 1 | -2/+6 |
| | | | | multiple databases. | ||||
* | Fixed #25160 -- Moved unsaved model instance data loss ↵ | Tim Graham | 2015-08-10 | 1 | -8/+1 |
| | | | | | | | | | check to Model.save() This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and 81e1a35c364e5353d2bf99368ad30a4184fbb653. Thanks Carl Meyer for review. | ||||
* | Removed unused Field.get_flatchoices() method. | Tim Graham | 2015-08-03 | 1 | -8/+0 |
| | | | | | | Unused since c2ba59fc1da5287d6286e2c2aca4083d5bafe056 (Django 1.0). Thanks Andy Baker for the report. | ||||
* | Fixed #18556 -- Allowed RelatedManager.add() to execute ↵ | Tim Graham | 2015-07-28 | 1 | -11/+32 |
| | | | | | | 1 query where possible. Thanks Loic Bistuer for review. | ||||
* | Fixed #21127 -- Started deprecation toward requiring ↵ | Flavio Curella | 2015-07-28 | 1 | -9/+59 |
| | | | | on_delete for ForeignKey/OneToOneField | ||||
* | Fixed #16501 -- Added an allow_unicode parameter to ↵ | Edward Henderson | 2015-07-17 | 1 | -1/+6 |
| | | | | | | SlugField. Thanks Flavio Curella and Berker Peksag for the initial patch. | ||||
* | Fixed #24716 -- Deprecated Field._get_val_from_obj() | Thomas Stephenson | 2015-07-14 | 1 | -7/+13 |
| | | | | | | The method duplicates the functionality of Field.value_from_object() and has the additional downside of being a privately named public API method. | ||||
* | Fixed #23791 -- Corrected object type check for pk__in=qs | Anssi Kääriäinen | 2015-06-29 | 1 | -1/+4 |
| | | | | | | | | | | | | When the pk was a relation field, qs.filter(pk__in=qs) didn't work. In addition, fixed Restaurant.objects.filter(place=restaurant_instance), where place is an OneToOneField and the primary key of Restaurant. A big thank you to Josh for review and to Tim for review and cosmetic edits. Thanks to Beauhurst for commissioning the work on this ticket. | ||||
* | Sorted imports in __init__.py files. | Tim Graham | 2015-06-27 | 1 | -18/+21 |
| | |||||
* | Fixed #25016 -- Reallowed non-ASCII values for ↵ | 薛丞宏 | 2015-06-26 | 1 | -4/+12 |
| | | | | ForeignKey.related_name on Python 3. | ||||
* | Renamed RemovedInDjangoXYWarnings for new roadmap. | Tim Graham | 2015-06-24 | 4 | -11/+11 |
| | | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more. | ||||
* | Fixed #24979 -- Removed usage of inspect.getargspec(). | Tim Graham | 2015-06-15 | 1 | -3/+2 |
| | |||||
* | Removed django.utils.functional.total_ordering() | Tim Graham | 2015-06-15 | 1 | -1/+2 |
| | |||||
* | Fixed #24912 -- Fixed prefetch_related failure for ↵ | Brian King | 2015-06-15 | 1 | -1/+4 |
| | | | | | | | UUIDField primary keys This resolves a problem on databases besides PostgreSQL when using prefetch_related with a source model that uses a UUID primary key. | ||||
* | Fixed #24859 -- Made QuerySet.get() with UUIDField raise ↵ | Cole Maclean | 2015-06-07 | 1 | -7/+11 |
| | | | | | | TypeError on bad value. For consistency with AutoField. | ||||
* | Fixed #22316 -- Added time filters to TimeField on SQLite. | Matthew Somerville | 2015-06-05 | 1 | -2/+5 |
| | | | | | This was implemented for non-SQLite backends in 1.7 (as a side effect of #16187). | ||||
* | Fixed #24677 -- Made TextField.to_python() return a string. | Rolo | 2015-06-04 | 1 | -2/+5 |
| | | | | This is consistent with CharField. | ||||
* | Fixed #24831 -- Fixed pickling queryset with ↵ | Andriy Sokolovskiy | 2015-06-02 | 1 | -0/+5 |
| | | | | prefetch_related() after deleting objects. | ||||
* | Fixed #9596 -- Added date transform for DateTimeField. | Jon Dufresne | 2015-06-02 | 1 | -0/+16 |
| | |||||
* | Fixed #24818 -- Prevented models.CharField from ↵ | Alasdair Nicol | 2015-05-19 | 1 | -6/+2 |
| | | | | accepting a string as max_length | ||||
* | Renamed value_to_db_xxx to adapt_xxxfield_value. | Aymeric Augustin | 2015-05-17 | 1 | -5/+5 |
| | | | | | This mirrors convert_xxxfield_value nicely, taking advantage of the adapter/converter terminology which is commonly used by DB-API modules. | ||||
* | Removed unnecessary arguments in .get method calls | Piotr Jakimiak | 2015-05-13 | 2 | -5/+5 |
| |