Skip to content

Commit

Permalink
Fix special qs order and order by fields
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-richert committed Apr 27, 2021
1 parent e60a9f1 commit 3cc97a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions luckycharms/base.py
Expand Up @@ -293,9 +293,9 @@ def __init__(self, *args, **kwargs):
if ordering:
self.ordering = ordering
self.fields['order_by'] = self.load_fields['order_by'] = _fields.Str(
missing=ordering[0][0])
data_key="order_by", attribute="order_by", missing=ordering[0][0])
self.fields['order'] = self.load_fields['order'] = _fields.Str(
missing=ordering[0][1][0])
data_key="order", attribute="order", missing=ordering[0][1][0])

@validates_schema
def validate_ordering(self, data, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -8,7 +8,7 @@

setup(
name='luckycharms',
version='0.5.13',
version='0.5.14',
url='https://github.com/justin-richert/luckycharms',
download_url='https://github.com/justin-richert/luckycharms/archive/0.5.1.zip',
license='MIT',
Expand Down

0 comments on commit 3cc97a5

Please sign in to comment.