nautobot-app-firewall-models icon indicating copy to clipboard operation
nautobot-app-firewall-models copied to clipboard

Sorting by Prefix in Address Object view results in error

Open ghmn256 opened this issue 11 months ago • 0 comments

Environment

  • Python version: 3.10.6
  • Nautobot version: 1.5.23
  • nautobot-plugin-firewall-model version: 1.2.1

Expected Behavior

Sorting by "Prefix" in the "Address Objects" view results in the results being sorted by prefix

Observed Behavior

Sorting by "Prefix" in the "Address Objects" view results in an error

"<class 'django.core.exceptions.FieldError'>

Cannot resolve keyword 'vrf' into field. Choices are: _custom_field_data, address_object_groups, addressobjectgroupm2m, created, description, destaddrm2m, destination_for_associations, destination_policy_rules, fqdn, fqdn_id, id, ip_address, ip_address_id, ip_range, ip_range_id, last_updated, name, natorigdestaddrm2m, natorigsrcaddrm2m, nattransdestaddrm2m, nattranssrcaddrm2m, original_destination_nat_policy_rules, original_source_nat_policy_rules, prefix, prefix_id, source_for_associations, source_policy_rules, srcaddrm2m, status, status_id, tagged_items, tags, translated_destination_nat_policy_rules, translated_source_nat_policy_rules "

Steps to Reproduce

  1. login to the nautobot demo environment
  2. go to the Security > Address Objects view
  3. Click the column header "Prefix" to sort by prefix (issue occurs both in our installed environment and the demo environment at demo.nautobot.com)

ghmn256 avatar Jul 14 '23 13:07 ghmn256