Starting the move of typeclass methods off *DB models and onto the typeclasses.

This commit is contained in:
Griatch 2014-12-22 22:46:58 +01:00
parent 9321573c23
commit 0b5e2b94ff
6 changed files with 21 additions and 21 deletions

View file

@ -34,7 +34,7 @@ def returns_typeclass(method):
def func(self, *args, **kwargs):
self.__doc__ = method.__doc__
query = method(self, *args, **kwargs)
return list(query)[0] if query else None
return query
return update_wrapper(func, method)
# Managers