Skip to content

Commit

Permalink
Simpify self.limit_count initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirt Gittens committed Apr 17, 2019
1 parent 13a99c2 commit 53e7208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, model_cls=None, filter_clauses=None, select_related=None, lim
self.model_cls = model_cls
self.filter_clauses = [] if filter_clauses is None else filter_clauses
self._select_related = [] if select_related is None else select_related
self.limit_count = None if limit_count is None else limit_count
self.limit_count = limit_count

def __get__(self, instance, owner):
return self.__class__(model_cls=owner)
Expand Down

0 comments on commit 53e7208

Please sign in to comment.