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

Views for updating m2m weights are directly modifying database fields without a form #273

Open
gsnider2195 opened this issue Oct 3, 2024 · 0 comments

Comments

@gsnider2195
Copy link
Contributor

Environment

  • Python version:
  • Nautobot version: v2.3.1
  • nautobot-firewall-models version: 2.1.1b1

Expected Behavior

When populating invalid values into these "forms" I expect to see standard django form failures

Observed Behavior

Form failures present as 500 errors since these views don't use forms to populate the data.

{4C8ECB97-0CE4-4FB6-98EF-31063CBE7C62}

Steps to Reproduce

  1. Create a Policy (or NATPolicy) with an assigned device
  2. Click on the detail view for the policy
  3. Click on the "Edit Policy Weight on Assigned Device" tab
  4. Enter a value higher than the database's max allowed value of 32767 for the weight field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant