#32294: fields.E305 is raised on ManyToManyFields with related_name='+' in models in different apps but with the same name. -------------------------------------+------------------------------------- Reporter: Aleksey Ruban | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: 3.1 (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Mariusz Felisiak):
* stage: Unreviewed => Accepted Comment: Thanks for the report. It looks that `app_label` is missing in [https://github.com/django/django/blob/c76d51b3ad34bc2ed2155054bfb283ef53beb26a/django/db/models/fields/related.py#L1619-L1623 ManyToManyField.contribute_to_class()]: {{{ self.remote_field.related_name = "_%s_%s_%s_+" % (cls._meta.app_label, cls.__name__.lower(), name) }}} -- Ticket URL: <https://code.djangoproject.com/ticket/32294#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.838b099e801d3e21697985c75eb22953%40djangoproject.com.