Updated readme with models that are less abstract.
Updated the readme with model examples that are less abstract. They reflect the django Model documentation making it easy for rookie django developers to grasp the concept.
@@ -34,14 +34,14 @@ Example:
.. code:: python
- def my_page(request):
- class MyPage(Page):
- foos = Table.from_model(model=Foo)
- bars = Table.from_model(model=Bar)
+ def music_page(request):
+ class MusicPage(Page):
+ musicians = Table.from_model(model=Musician)
+ albums = Table.from_model(model=Album)
- return MyPage()
+ return MusicPage()
-This creates a page with two tables, one for the model :code:`Foo` and one for the model :code:`Bar`.
+This creates a page with two separate tables, one for the model :code:`Musician` and one for the model :code:`Album`.
Usage
