let register decorator return decorated class

This commit is contained in:
Pavel Sutyrin 2016-02-04 02:20:35 +03:00
parent 276ee5be8a
commit 3f4d48dd5a

View file

@ -21,5 +21,6 @@ def register(model_or_iterable, **options):
if not issubclass(opts_class, TranslationOptions):
raise ValueError('Wrapped class must subclass TranslationOptions.')
translator.register(model_or_iterable, opts_class, **options)
return opts_class
return wrapper