Skip to content

Commit

Permalink
Added placeholders for permissions chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
shabda committed Feb 5, 2018
1 parent 25abc52 commit 73798cb
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 4 deletions.
15 changes: 12 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ Text and Design

.. toctree::
:maxdepth: 1
:caption: Contents:


change_text
plural_text
Expand All @@ -34,13 +32,24 @@ Calculated fields

.. toctree::
:maxdepth: 1
:caption: Contents:

calculated_fields
many_to_many
sorting_calculated_fields
filtering_calculated_fields

Permissions
+++++++++++++++++++++

.. toctree::
:maxdepth: 1

specific_users
restrict
restrict_parts
only_one
remove_add_delete


Indices and tables
+++++++++++++++++++++
Expand Down
2 changes: 2 additions & 0 deletions docs/only_one.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
How to allow creating only one object from the admin?
=====================================================
12 changes: 11 additions & 1 deletion docs/questions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* How to create two independent admin sites?
* How to remove default apps from Django admin?
* How to override Django admin templates?
* How to set ordering of Apps and models in Django admin dashboard.


### Calculated fields

Expand All @@ -22,6 +22,7 @@
* How to override save behaviour for Django admin?
* How to add a database view to Django admin?
* How to optimize queries in Django admin?
* How to set ordering of Apps and models in Django admin dashboard.

### Permissions

Expand Down Expand Up @@ -66,6 +67,15 @@
* How to change ForeignKey display text in dropdowns?
* How to add a custom button to Django change view page?

### Misc

* How to get Django admin urls for specific objects?
* How to add a model twice to Django admin?
* How to override save behaviour for Django admin?
* How to add a database view to Django admin?
* How to optimize queries in Django admin?
* How to set ordering of Apps and models in Django admin dashboard.


formfield_for_foreignkey
models.ForeignKey(ForeignStufg, verbose_name='your text')
2 changes: 2 additions & 0 deletions docs/remove_add_delete.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
How to remove the 'Add'/'Delete' button for a model?
====================================================
2 changes: 2 additions & 0 deletions docs/restrict.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
How to restrict Django admin to specific users?
=================================================
2 changes: 2 additions & 0 deletions docs/restrict_parts.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
How to restrict access to parts of Django admin?
=================================================
2 changes: 2 additions & 0 deletions docs/specific_users.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
How to restrict Django admin to specific users?
================================================

0 comments on commit 73798cb

Please sign in to comment.