Skip to content

Migration broken in 5.1Β #244

@mikewolfd

Description

@mikewolfd

Checklist

  • I have verified that I am using a GIS-enabled database, such as PostGIS or Spatialite.
  • I have verified that that issue exists against the master branch of django-cities.
  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • I have reduced the issue to the simplest possible case.
  • I have included a failing test as a pull request. (If you are unable to do so we can still accept the issue.)

Steps to reproduce

Django 5.1

Expected behavior

No new migrations are created

Actual behavior

Migration 13 is created with a similar issue to what was fixed in 0.6.2.

WARNINGS: cities.Country.neighbours: (fields.W345) related_name has no effect on ManyToManyField with a symmetrical relationship, e.g. to "self". Migrations for 'cities': /usr/local/lib/python3.12/site-packages/cities/migrations/0013_alter_alternativename_id_alter_city_id_and_more.py ~ Alter field id on alternativename ~ Alter field id on city ~ Alter field id on continent ~ Alter field id on country ~ Alter field id on district ~ Alter field id on postalcode ~ Alter field id on region ~ Alter field id on subregion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions