mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 22:17:17 +02:00
Starting the move of typeclass methods off *DB models and onto the typeclasses.
This commit is contained in:
parent
9321573c23
commit
0b5e2b94ff
6 changed files with 21 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue