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

500 - FieldError When attempting to sort by prefix in UI (Affects others explained below) #278

Closed
FragmentedPacket opened this issue Apr 9, 2021 · 1 comment · Fixed by #282
Labels
type: bug Something isn't working as expected
Milestone

Comments

@FragmentedPacket
Copy link
Contributor

Environment

  • Python version: 3.7
  • Nautobot version: 1.0.0b3

Steps to Reproduce

  1. Attempt to sort by Prefix (ipam/prefix) on prefix's UI list view
  2. FieldError occurs

This also happens when attempting to sort IP addresses and Aggregates on their respective list views

Expected Behavior

Sort prefixes/ip address/aggregates appropriately

Observed Behavior

500 for FieldError

exception
FieldError: Cannot resolve keyword 'prefix' into field. Choices are: _custom_field_data, broadcast, children, created, description, id, is_pool, last_updated, network, parents, prefix_length, role, role_id, site, site_id, status, status_id, tagged_items, tags, tenant, tenant_id, vlan, vlan_id, vrf, vrf_id
@jathanism jathanism added the type: bug Something isn't working as expected label Apr 9, 2021
@jathanism
Copy link
Contributor

More IPAM field type bugs. This also affects IPAddress and Aggregate objects.

This can be solved with a quick fix to the respective column objects by adding an order_by argument. (See: https://django-tables2.readthedocs.io/en/latest/pages/ordering.html#ordering-by-accessors)

@jathanism jathanism added this to the v1.0.0 milestone Apr 9, 2021
@jathanism jathanism added this to To do in Release v1.0.0 via automation Apr 9, 2021
Release v1.0.0 automation moved this from To do to Done Apr 12, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working as expected
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants