Skip to content

Commit b3735da

Browse files
committed
updated docs
1 parent a4ea4d3 commit b3735da

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/source/installation.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ Then create the CRUD class for ``Person`` model::
5656
return qset
5757

5858
@classmethod
59-
def custom_context(cls, request, context **kwargs):
59+
def custom_context(cls, request, context, **kwargs):
6060
"""Define your own custom context for list view"""
6161
context['custom_data'] = "Some custom data"
6262
return context
63-
63+
6464
# permissions = {
6565
# 'list': 'example.person_list',
6666
# 'create': 'example.person_create'
@@ -70,7 +70,6 @@ Then create the CRUD class for ``Person`` model::
7070
# 'update': PersonUpdateForm
7171
# }
7272

73-
7473
Finally implement the urls for the CRUD::
7574
7675
# tutorail/urls.py
@@ -87,6 +86,10 @@ The above will generate following URL's::
8786
http://127.0.0.1:8000/crud/yourappname/yourmodelname/<pk>/update/
8887
http://127.0.0.1:8000/crud/yourappname/yourmodelname/<pk>/delete/
8988

89+
View all your registered CRUDS::
90+
91+
http://127.0.0.1:8000/crud/
92+
9093

9194
CRUD class Attributes
9295
---------------------

0 commit comments

Comments
 (0)