summaryrefslogtreecommitdiff
path: root/tests/schema/fields.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-17/+46
|
* Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵Daniyal2021-07-151-2/+4
| | | | | | django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #32676 -- Prevented migrations from rendering related field attributes ↵David Wobrock2021-05-281-1/+6
| | | | | | when not passed during initialization. Thanks Simon Charette for the implementation idea.
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-8/+8
|
* Refs #23919 -- Replaced usage of django.utils.functional.curry() with ↵Sergey Fedoseev2017-09-061-2/+3
| | | | functools.partial()/partialmethod().
* Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.Vytis Banaitis2017-02-011-8/+9
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-2/+2
|
* Fix import sorting problem.Aymeric Augustin2015-09-211-3/+2
|
* Renamed descriptor classes for related objects.Aymeric Augustin2015-09-211-2/+2
| | | | | | | | | | | | 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 #24846 -- Added support to MySQL SchemaEditor for all blob/text data typesAdam Chainz2015-05-301-0/+9
|
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-5/+6
| | | | | | | | 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.
* Merged ManyRelatedObjectsDescriptor and ReverseManyRelatedObjectsDescriptorLoic Bistuer2015-02-161-3/+3
| | | | | and made all "many" related objects descriptors inherit from ForeignRelatedObjectsDescriptor.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+2
|
* Cleaned up schema testsMarkus Holtermann2015-02-051-0/+4
| | | | Thanks Tim Graham for the review.
* Fixed #24104 -- Fixed check to look on field.many_to_many instead of class ↵Andriy Sokolovskiy2015-01-221-0/+54
instance