django1/django/db/models/fields
Nick Touran 5d4f21b16f Fixed #32983 -- Added system check for redundant related_name on symmetrical M2M fields.
Since ManyToManyFields defined with `symmetrical=True` do not add a
related field to the target model, including a `related_name` argument
will never do what the coder likely expects. This makes including
a related_name with a symmetrical model raise a system check warning.

ticket-32983
2021-08-06 11:57:02 +02:00
..
__init__.py Refs #32966 -- Refactored out DateTimeCheckMixin._check_if_value_fixed(). 2021-07-30 10:15:43 +02:00
files.py Fixed #32718 -- Relaxed file name validation in FileField. 2021-05-13 08:53:44 +02:00
json.py Fixed #32483 -- Fixed QuerySet.values()/values_list() on JSONField key transforms with booleans on SQLite. 2021-03-23 08:28:47 +01:00
mixins.py Refs #12990 -- Moved CheckFieldDefaultMixin to the django.db.models.fields.mixins. 2019-10-17 12:30:29 +02:00
proxy.py Removed unused OrderWrt.deconstruct(). 2017-07-06 18:45:53 -04:00
related.py Fixed #32983 -- Added system check for redundant related_name on symmetrical M2M fields. 2021-08-06 11:57:02 +02:00
related_descriptors.py Refs #32946 -- Changed internal usage of dynamic Q() objects construction to use non-kwargs initialization. 2021-07-28 09:38:46 +02:00
related_lookups.py Fixed #27021 -- Allowed lookup expressions in annotations, aggregations, and QuerySet.filter(). 2021-07-09 11:43:06 +02:00
reverse_related.py Fixed #32947 -- Fixed hash() crash on reverse M2M relation when through_fields is a list. 2021-07-26 06:09:29 +02:00