Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagaro committed Jan 13, 2017
1 parent c004473 commit 11034e2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/admin.rst
Expand Up @@ -2,6 +2,9 @@
Handling administration
=======================

Model admin
-----------

.. py:module:: safedelete.admin
Deleted objects will also be hidden in the admin site by default. A ``ModelAdmin`` abstract class is provided to give access to deleted objects.
Expand Down
12 changes: 9 additions & 3 deletions docs/conf.py
Expand Up @@ -53,9 +53,9 @@
# built documents.
#
# The short X.Y version.
version = '1'
version = '0.4'
# The full version, including alpha/beta/rc tags.
release = '1'
release = '0.4'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -136,7 +136,13 @@
#html_use_smartypants = True

# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
html_sidebars = {
'**': [
'globaltoc.html',
'relations.html',
'sourcelink.html',
'searchbox.html'],
}

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down
5 changes: 5 additions & 0 deletions docs/models.rst
Expand Up @@ -28,6 +28,11 @@ The different policies are:
This will make the objects be automatically masked (and not deleted), when you call the delete() method.
They will NOT be masked in cascade.

.. py:data:: SOFT_DELETE_CASCADE
This will make the objects be automatically masked (and not deleted) and all related objects, when you call the delete() method.
They will be masked in cascade.

.. py:data:: HARD_DELETE_NOCASCADE
This policy will:
Expand Down

0 comments on commit 11034e2

Please sign in to comment.