Skip to content

Commit 4291265

Browse files
authored
Merge pull request #5459 from stsewd/regroup-settings
Regroup settings
2 parents fe9646a + 7af0ecd commit 4291265

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

readthedocs/projects/forms.py

+13-15
Original file line numberDiff line numberDiff line change
@@ -208,24 +208,23 @@ class ProjectAdvancedForm(ProjectTriggerBuildMixin, ProjectForm):
208208
class Meta:
209209
model = Project
210210
fields = (
211-
# Standard build edits
212-
'install_project',
213-
'requirements_file',
214-
'single_version',
215-
'conf_py_file',
216-
'default_branch',
211+
# Global settings.
217212
'default_version',
213+
'default_branch',
214+
'privacy_level',
215+
'analytics_code',
218216
'show_version_warning',
217+
'single_version',
218+
219+
# Options that can be set per-version using a config file.
220+
'documentation_type',
221+
'requirements_file',
222+
'python_interpreter',
223+
'install_project',
224+
'use_system_packages',
225+
'conf_py_file',
219226
'enable_pdf_build',
220227
'enable_epub_build',
221-
# Privacy
222-
'privacy_level',
223-
# 'version_privacy_level',
224-
# Python specific
225-
'use_system_packages',
226-
'python_interpreter',
227-
# Fringe
228-
'analytics_code',
229228
)
230229

231230
def __init__(self, *args, **kwargs):
@@ -291,7 +290,6 @@ class Meta:
291290
'repo_type',
292291
# Extra
293292
'description',
294-
'documentation_type',
295293
'language',
296294
'programming_language',
297295
'project_url',

readthedocs/rtd_tests/tests/test_project_symlinks.py

+1
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,7 @@ def test_change_subproject_privacy(self):
12141214
# Required defaults
12151215
'python_interpreter': 'python',
12161216
'default_version': 'latest',
1217+
'documentation_type': 'sphinx',
12171218

12181219
'privacy_level': 'private',
12191220
},

0 commit comments

Comments
 (0)