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

Can not create software objects with blank documentation url in ORM #263

Open
bile0026 opened this issue Dec 13, 2023 · 1 comment
Open

Comments

@bile0026
Copy link

Unable to create Software objects via the ORM without a documentation URL. This function works in the UI.

Nautobot: 1.6.2
DLM Plugin: 1.3.2

https://github.com/nautobot/nautobot-plugin-device-lifecycle-mgmt/blob/a41d76018a060d197d2207a0c30b850b73a72f35/nautobot_device_lifecycle_mgmt/models.py#L164C1-L165C1

I believe this should be:

documentation_url = models.URLField(null=True, blank=True, verbose_name="Documentation URL")
@glennmatthews
Copy link

Generally speaking text fields shouldn't be null=True. Probably the fix here would be to set default="" instead?

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

2 participants