diff --git a/docs/other.rst b/docs/other.rst index 82f61f82..1031229b 100644 --- a/docs/other.rst +++ b/docs/other.rst @@ -378,6 +378,77 @@ The ``orderable_columns`` restriction is here in order to stop your users from l Example url: `http://127.0.0.1:8000/articles/?order_by=title&ordering=asc` +**Front-end Example Usage** + +If you're using bootstrap you could create a template like the following: + +.. code:: html + +
+ + + + + + {% for object in object_list %} + + + + + {% endfor %} +
IDTitle
{{ object.id }}{{ object.title }}
+
+ + + .. _CanonicalSlugDetailMixin: CanonicalSlugDetailMixin