File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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-
7473Finally 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
9194CRUD class Attributes
9295---------------------
You can’t perform that action at this time.
0 commit comments