10000 Improve apphooks documentation (#6743) · django-cms/django-cms@c170972 · GitHub
[go: up one dir, main page]

Skip to content

Commit c170972

Browse files
adrien-delhormeFinalAngel
authored andcommitted
Improve apphooks documentation (#6743)
Remove a reference to `urls` attribute on AppHook class in the documentation.
1 parent 48f4573 commit c170972

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/how_to/namespaced_apphooks.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,11 @@ Now let's create the apphook, and set it up with support for multiple instances.
261261
@apphook_pool.register
262262
class FaqApp(CMSConfigApp):
263263
name = _("Faq App")
264-
urls = ["faq.urls"]
265264
app_name = "faq"
266265
app_config = FaqConfig
266+
267+
def get_urls(self, page=None, language=None, **kwargs):
268+
return ["faq.urls"]
267269
268270
269271
Define a list view for FAQ entries

0 commit comments

Comments
 (0)
0