wq / wq.db

☁🌐 wq's db library, extending Django REST framework to support apps for geospatial field data collection, citizen science, and crowdsourcing.

Home Page:https://wq.io/wq.db/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

default_attachments not passing query string parameters to get_lookup_choices

davidoj opened this issue · comments

The TypedAttachmentListSerializer class currently defines default attachments to call get_lookup_choices with an empty context:

def default_attachments(self, initial):
    """ """
    types = self.child.get_lookup_choices(type_field, {})

The empty context is passed through to compute_filter unchanged, so it does not filter on query string parameters (or anything else) as I believe it is intended to.