nautobot / nautobot-app-device-lifecycle-mgmt

Device Lifecycle Management App for Nautobot
https://docs.nautobot.com/projects/device-lifecycle/en/latest/
Other
38 stars 25 forks source link

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

Open bile0026 opened 7 months ago

bile0026 commented 7 months ago

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 commented 7 months ago

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