forked from django-cms/django-cms
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow using apphook_pool.register() as a decorator.
If it returns None, then the value of the defined class will be None, which makes it dfficult to access the class! It can still be used in the old way. The lambda is only necessary when register is invoked with arguments, for example: @apphook_pool.register(discovering_apps=True) class MyApp(CMSApp): ... and I don't know if that should be allowed or not.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters