Skip to content

Commit

Permalink
ListField(None) raises an exception, so it shouldn't be the default
Browse files Browse the repository at this point in the history
  • Loading branch information
jhalcrow committed Jan 30, 2012
1 parent c88cc3b commit e93e1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dictshield/fields/compound.py
Expand Up @@ -148,7 +148,7 @@ class SortedListField(ListField):

_ordering = None

def __init__(self, field=None, **kwargs):
def __init__(self, field, **kwargs):
if 'ordering' in kwargs.keys():
self._ordering = kwargs.pop('ordering')
super(SortedListField, self).__init__(field, **kwargs)
Expand Down

0 comments on commit e93e1d9

Please sign in to comment.