cloudblue / django-rql

Django RQL library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using empty() on dynamic fields raises RQLFilterValueError: RQL Value error.

ZipBrandon opened this issue · comments

When a filter is specified like the example, then json_data.key=empty() raises RQLFilterValueError. =null() works accordingly.

{
    'filter': 'json_data.key',
    'source': 'json_data__key',
    'dynamic': True,
    'field': CharField(null=True),
},

I fixed this error. The CharField should be CharField(null=True, blank=True). It would be helpful to have raise more helpful messages.

raise ValueError

@ZipBrandon thx for feedback, we will consider!