Skip to content

Commit

Permalink
Merge pull request #407 from johnfraney/patch-1
Browse files Browse the repository at this point in the history
Update api.rst
  • Loading branch information
etianen committed May 27, 2015
2 parents 1125b8c + 6ba03d6 commit 9cadd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If you're already using the :ref:`admin integration <admin>` for a model, then t
class YourOtherModel(models.Model):
...

**Warning:** If you’re using django-reversion in an management command, and are using the automatic ``VersionAdmin`` registration method, then you’ll need to import the relevant ``admin.py`` file at the top of your management command file.
**Warning:** If you’re using django-reversion in a management command, and are using the automatic ``VersionAdmin`` registration method, then you’ll need to import the relevant ``admin.py`` file at the top of your management command file.

**Warning:** When Django starts up, some python scripts get loaded twice, which can cause 'already registered' errors to be thrown. If you place your calls to ``reversion.register()`` in the ``models.py`` file, immediately after the model definition, this problem will go away.

Expand Down

0 comments on commit 9cadd6c

Please sign in to comment.