File: config.py

package info (click to toggle)
python-sphinxcontrib-django 2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 636 kB
  • sloc: python: 1,450; makefile: 20; sh: 6
file content (27 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
This module contains configuration of the members which should in-/excluded in sphinx
(see :event:`autodoc-skip-member`)
"""
#: Ensure that the __init__ method gets documented (also see :confval:`autoclass_content` setting)
INCLUDE_MEMBERS = {"__init__"}

#: Members to hide.
EXCLUDE_MEMBERS = {
    # BaseForm
    "base_fields",
    "declared_fields",
    "Meta",
    # BaseModelAdmin
    "declared_fieldsets",
    "fieldsets",
    # Wagtail Page
    "panels",
    "content_panels",
    # Polymorphic
    "polymorphic_primary_key_name",
    "polymorphic_super_sub_accessors_replaced",
}

#: How many choices should be shown for model fields by default,
#: used as default for ``django_choices_to_show`` option
CHOICES_LIMIT = 10