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

CheckConstraint fixer doesn't handle from django.contrib.gis.db import models #513

Closed
adamchainz opened this issue Dec 2, 2024 · 0 comments · Fixed by #514
Closed

CheckConstraint fixer doesn't handle from django.contrib.gis.db import models #513

adamchainz opened this issue Dec 2, 2024 · 0 comments · Fixed by #514

Comments

@adamchainz
Copy link
Owner

Python Version

3.12

Django Version

5.1

Package Version

1.22.1

Description

In a module using from django.contrib.gis.db import models, references to models.CheckConstraint(check=...) are not fixed. Django re-exposes everything from django.db.models in django.contrib.gis.db.models for convenience, so the fixer should handle that.

Probably other fixers need to handle this alias module too.

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

Successfully merging a pull request may close this issue.

1 participant