Small admin documentation fix.
This commit is contained in:
1 parent
28b8885236
commit
eee5dda5ba
1 file changed
+1
-1
@@ -239,7 +239,7 @@ Example
|
|||||||
child_models = (
|
child_models = (
|
||||||
(ModelB, ModelBAdmin),
|
(ModelB, ModelBAdmin),
|
||||||
(ModelC, ModelCAdmin),
|
(ModelC, ModelCAdmin),
|
||||||
}
|
)
|
||||||
|
|
||||||
# Only the parent needs to be registered:
|
# Only the parent needs to be registered:
|
||||||
admin.site.register(ModelA, ModelAParentAdmin)
|
admin.site.register(ModelA, ModelAParentAdmin)
|
||||||
|
|||||||
Reference in new issue
Block a user