| 1 |
Register your models with a subclass of :ref:`VersionAdmin`. |
| 2 |
|
| 3 |
.. code:: python |
| 4 |
|
| 5 |
from django.contrib import admin |
| 6 |
from reversion.admin import VersionAdmin |
| 7 |
|
| 8 |
@admin.register(YourModel) |
| 9 |
class YourModelAdmin(VersionAdmin): |
| 10 |
|
| 11 |
pass |
| 12 |
|
| 13 |
.. include:: /_include/post-register.rst |