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

Have Replaced Models include checks for Field Definition #29

Open
jmcgill298 opened this issue Jun 29, 2023 · 0 comments · May be fixed by #33
Open

Have Replaced Models include checks for Field Definition #29

jmcgill298 opened this issue Jun 29, 2023 · 0 comments · May be fixed by #33
Labels
status: accepted This issue has been accepted by the maintainers team for implementation type: enhancement

Comments

@jmcgill298
Copy link

jmcgill298 commented Jun 29, 2023

def visit_importfrom(self, node):

This requires that the field definition to used an imported Model, but it is likely to use a string reference such as:

from django.db import models

from nautobot.core.models.generics import PrimaryModel


class AppModel(PrimaryModel):
    role = models.ForeignKey(to="dcim.DeviceRole", ...)
@Kircheneer Kircheneer added status: accepted This issue has been accepted by the maintainers team for implementation type: enhancement labels Jun 30, 2023
@jmcgill298 jmcgill298 linked a pull request Jul 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepted This issue has been accepted by the maintainers team for implementation type: enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants