Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration broken in 5.1 #244

Open
5 tasks done
mikewolfd opened this issue Oct 10, 2024 · 0 comments
Open
5 tasks done

Migration broken in 5.1 #244

mikewolfd opened this issue Oct 10, 2024 · 0 comments

Comments

@mikewolfd
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant