summaryrefslogtreecommitdiff
path: root/tests/foreign_object
AgeCommit message (Collapse)Author
2015-11-14[1.9.x] Refs #25745 -- Isolated a foreign_object test.Simon Charette
Backport of 2eefbca1a4140d8a8174a06a1f0160fcc76d8f64 from master
2015-11-03[1.9.x] Fixed #25668 -- Misc spelling errorsVille Skyttä
Backport of 3ee18400ae9b916da1a3bee9c9c630fd223a2d3c from master
2015-10-14[1.9.x] Fixed #25535 -- Made ForeignObject checks less strict.Antoine Catton
Check that the foreign object `from_fields` are a subset of any unique constraints on the foreign model. Backport of 80dac8c33e7f6f22577e4346f44e4c5ee89b648c and c7aff31397a7228f6ac2e33c10ebdf36c4b7a9b7 from master
2015-09-21Renamed descriptor classes for related objects.Aymeric Augustin
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.
2015-08-15Fixed #25064 -- Allowed empty join columns.Alex Hill
2015-08-14Moved foreign_object models.py into a module.Tim Graham
2015-08-03Added test for ForeignObject.get_extra_descriptor_filter()Alex Hill
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen
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.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-02Ensured foreign_object tests reset language properly.Preston Timmons
2014-11-16Renamed qn to compilerJosh Smeaton
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2013-12-06Fixed #21566 -- Fixed AttributeError when using bulk_create with ForeignObject.Roger Hu
2013-12-01Fixed incorrect type for max_length.Tim Graham
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-08-13Fixed #20874 -- bump_prefix() in nested subqueriesAnssi Kääriäinen
Also made some cleanup to build_filter() code by introducing submethods solve_lookup_type() and prepare_lookup_value().
2013-08-06Fixed ordering related test failureAnssi Kääriäinen
Also PEP8 + python_2_unicode_compatible cleanup done.
2013-07-25Fixed ._meta.pk_index() virtual field failureAnssi Kääriäinen
2013-06-27Add related_query_name to ForeignKey/M2M. Refs #20244Andrew Godwin
2013-05-27Fixed #17582 - Added message to DoesNotExist exceptions.Tim Graham
Thanks simon@ for the suggestion and JordanPowell for the initial patch.
2013-05-09Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and ↵Luke Plant
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.
2013-03-24Fixed 19385 -- Added ORM support for multicolumn joinsAnssi Kääriäinen
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.