Provide a way to show enum display text for some version diff fields
master view must explicitly declare which enums for which fields
This commit is contained in:
parent
2a9d5f74ce
commit
35131c8732
7 changed files with 172 additions and 26 deletions
|
@ -81,6 +81,12 @@ override when defining your subclass.
|
|||
override this for certain views, if so that should be done within
|
||||
:meth:`get_help_url()`.
|
||||
|
||||
.. attribute:: MasterView.version_diff_factory
|
||||
|
||||
Optional factory to use for version diff objects. By default
|
||||
this is *not set* but a subclass is free to set it. See also
|
||||
:meth:`get_version_diff_factory()`.
|
||||
|
||||
|
||||
Methods to Override
|
||||
-------------------
|
||||
|
@ -100,6 +106,14 @@ subclass.
|
|||
|
||||
.. automethod:: MasterView.get_model_key
|
||||
|
||||
.. automethod:: MasterView.get_version_diff_enums
|
||||
|
||||
.. automethod:: MasterView.get_version_diff_factory
|
||||
|
||||
.. automethod:: MasterView.make_version_diff
|
||||
|
||||
.. automethod:: MasterView.title_for_version
|
||||
|
||||
|
||||
Support Methods
|
||||
---------------
|
||||
|
|
6
docs/api/views/members.rst
Normal file
6
docs/api/views/members.rst
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
``tailbone.views.members``
|
||||
==========================
|
||||
|
||||
.. automodule:: tailbone.views.members
|
||||
:members:
|
Loading…
Add table
Add a link
Reference in a new issue