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

Card API view raises FieldError in v8 #11535

Closed
jacobtylerwalls opened this issue Oct 10, 2024 · 0 comments · Fixed by #11534
Closed

Card API view raises FieldError in v8 #11535

jacobtylerwalls opened this issue Oct 10, 2024 · 0 comments · Fixed by #11534
Assignees
Labels
Type: Bug Something isn't working unreleased

Comments

@jacobtylerwalls
Copy link
Member

Request Method: GET
Request URL: http://127.0.0.1:8000/cards/0159aa99-f9ef-43f6-a412-89df24b832bb

Django Version: 5.1.2
Python Version: 3.12.1

Traceback (most recent call last):
  File "/Users/jwalls/prj/arches/arches/app/views/api/__init__.py", line 1018, in get
    tiles = resource_instance.tilemodel_set.order_by("sortorder").filter(
            
  File "/Users/jwalls/release/lib/python3.12/site-packages/django/db/models/query.py", line 1476, in filter
    return self._filter_or_exclude(False, args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jwalls/release/lib/python3.12/site-packages/django/db/models/query.py", line 1494, in _filter_or_exclude
    clone._filter_or_exclude_inplace(negate, args, kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jwalls/release/lib/python3.12/site-packages/django/db/models/query.py", line 1501, in _filter_or_exclude_inplace
    self._query.add_q(Q(*args, **kwargs))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jwalls/release/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1609, in add_q
    clause, _ = self._add_q(q_object, self.used_aliases)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jwalls/release/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1641, in _add_q
    child_clause, needed_inner = self.build_filter(
                                 
  File "/Users/jwalls/release/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1491, in build_filter
    lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize)
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jwalls/release/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1303, in solve_lookup_type
    _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jwalls/release/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1768, in names_to_path
    raise FieldError(
    ^

Exception Type: FieldError at /cards/0159aa99-f9ef-43f6-a412-89df24b832bb
Exception Value: Cannot resolve keyword 'nodegroup' into field. Choices are: data, file, geojsongeometry, nodegroup_id, parenttile, parenttile_id, provisionaledits, resourceinstance, resourceinstance_id, resxres_tile_id, sortorder, tileid, tilemodel, vwannotation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working unreleased
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant