From 83c8dc7dcfc100fa32830def66333100c0ae862f Mon Sep 17 00:00:00 2001 From: Jan-Jelle Kester Date: Fri, 15 May 2015 01:43:01 +0200 Subject: [PATCH] Fix syntax highlighting on usage page --- docs/source/usage.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 3277a9f..bf4c6b5 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -13,6 +13,7 @@ Registering your model for logging can be done with a single line of code, as th from django.db import models class MyModel(models.Model): + pass # Model definition goes here auditlog.register(MyModel) @@ -31,7 +32,9 @@ entries. If ``include_fields`` is specified only the fields with the given names entries. Explicitly excluding fields through ``exclude_fields`` takes precedence over specifying which fields to include. -For example, to exclude the field ``last_updated``, use ``auditlog.register(MyModel, exclude_fields=['last_updated'])``. +For example, to exclude the field ``last_updated``, use:: + + auditlog.register(MyModel, exclude_fields=['last_updated']) .. versionadded:: 0.3.0