Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/foreign_object
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25668 -- Misc spelling errorsVille Skyttä2015-11-031-1/+1
|
* Refs #25535 -- Minor edits to ForeignObject check changes.Tim Graham2015-10-141-17/+8
|
* Fixed #25535 -- Made ForeignObject checks less strict.Antoine Catton2015-10-131-0/+60
| | | | | Check that the foreign object `from_fields` are a subset of any unique constraints on the foreign model.
* Renamed descriptor classes for related objects.Aymeric Augustin2015-09-212-8/+7
| | | | | | | | | | | | 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 #25064 -- Allowed empty join columns.Alex Hill2015-08-153-1/+149
|
* Moved foreign_object models.py into a module.Tim Graham2015-08-145-113/+137
|
* Added test for ForeignObject.get_extra_descriptor_filter()Alex Hill2015-08-032-1/+4
|
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-11/+26
| | | | on_delete for ForeignKey/OneToOneField
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-1/+1
| | | | | | | | 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.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-6/+10
|
* Ensured foreign_object tests reset language properly.Preston Timmons2014-12-021-7/+8
|
* Renamed qn to compilerJosh Smeaton2014-11-161-1/+2
|
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-1/+1
| | | | Django test suite.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #21566 -- Fixed AttributeError when using ↵Roger Hu2013-12-061-1/+7
| | | | bulk_create with ForeignObject.
* Fixed incorrect type for max_length.Tim Graham2013-12-011-1/+1
|
* PEP8 cleanupJason Myers2013-11-032-0/+13
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #20874 -- bump_prefix() in nested subqueriesAnssi Kääriäinen2013-08-131-1/+18
| | | | | Also made some cleanup to build_filter() code by introducing submethods solve_lookup_type() and prepare_lookup_value().
* Fixed ordering related test failureAnssi Kääriäinen2013-08-062-18/+33
| | | | Also PEP8 + python_2_unicode_compatible cleanup done.
* Fixed ._meta.pk_index() virtual field failureAnssi Kääriäinen2013-07-252-1/+20
|
* Add related_query_name to ForeignKey/M2M. Refs #20244Andrew Godwin2013-06-272-1/+28
|
* Fixed #17582 - Added message to DoesNotExist exceptions.Tim Graham2013-05-271-0/+5
| | | | | Thanks simon@ for the suggestion and JordanPowell for the initial patch.
* Fixed #19733 - deprecated ModelForms without 'fields' or ↵Luke Plant2013-05-091-0/+1
| | | | | | | | 'exclude', and added '__all__' shortcut This also updates all dependent functionality, including modelform_factory and modelformset_factory, and the generic views `ModelFormMixin`, `CreateView` and `UpdateView` which gain a new `fields` attribute.
* Fixed 19385 -- Added ORM support for multicolumn joinsAnssi Kääriäinen2013-03-243-0/+490
This patch iproved two major parts in Django. First, the fields.related was refactored. The main addition there was ForeignObject. Second, the ORM now handles multicolumn joins in most cases, though there are still cases that do not work correcly (split_exclude() for example). In addition there were extesive changes to how GenericRelation works. Before it was a fake m2m field, now it is a pure virtual fields and is based on ForeignObject. There is still much room for improvement. The related fields code is still somewhat confusing, and how fields are represented in model._meta should also be revisited. This patch was written mostly by Jeremy Tillman with some final polish by the committer.