Skip to content

Commit 6ec3365

Browse files
committed
Projects: remove old/non-used fields
Follow safe migrations instructions from https://dev.readthedocs.io/en/latest/migrations.html to remove these fields.
1 parent 501ecfa commit 6ec3365

File tree

3 files changed

+316
-94
lines changed

3 files changed

+316
-94
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
# Generated by Django 4.2.10 on 2024-02-19 11:16
2+
3+
from django.db import migrations, models
4+
from django_safemigrate import Safe
5+
6+
7+
class Migration(migrations.Migration):
8+
safe = Safe.before_deploy
9+
10+
dependencies = [
11+
("projects", "0114_set_timestamp_fields_as_no_null"),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name="historicalproject",
17+
name="conf_py_file",
18+
field=models.CharField(
19+
blank=True,
20+
default="",
21+
help_text="Path from project root to <code>conf.py</code> file (ex. <code>docs/conf.py</code>). Leave blank if you want us to find it for you.",
22+
max_length=255,
23+
null=True,
24+
verbose_name="Python configuration file",
25+
),
26+
),
27+
migrations.AlterField(
28+
model_name="historicalproject",
29+
name="documentation_type",
30+
field=models.CharField(
31+
blank=True,
32+
choices=[
33+
("sphinx", "Sphinx Html"),
34+
("mkdocs", "Mkdocs"),
35+
("sphinx_htmldir", "Sphinx HtmlDir"),
36+
("sphinx_singlehtml", "Sphinx Single Page HTML"),
37+
],
38+
default="sphinx",
39+
help_text='Type of documentation you are building. <a href="http://www.sphinx-doc.org/en/stable/builders.html#sphinx.builders.html.DirectoryHTMLBuilder">More info on sphinx builders</a>.',
40+
max_length=20,
41+
null=True,
42+
verbose_name="Documentation type",
43+
),
44+
),
45+
migrations.AlterField(
46+
model_name="historicalproject",
47+
name="enable_epub_build",
48+
field=models.BooleanField(
49+
blank=True,
50+
default=False,
51+
help_text="Create a EPUB version of your documentation with each build.",
52+
null=True,
53+
verbose_name="Enable EPUB build",
54+
),
55+
),
56+
migrations.AlterField(
57+
model_name="historicalproject",
58+
name="enable_pdf_build",
59+
field=models.BooleanField(
60+
blank=True,
61+
default=False,
62+
help_text="Create a PDF version of your documentation with each build.",
63+
null=True,
64+
verbose_name="Enable PDF build",
65+
),
66+
),
67+
migrations.AlterField(
68+
model_name="historicalproject",
69+
name="install_project",
70+
field=models.BooleanField(
71+
blank=True,
72+
default=False,
73+
help_text="Install your project inside a virtualenv using <code>setup.py install</code>",
74+
null=True,
75+
verbose_name="Install Project",
76+
),
77+
),
78+
migrations.AlterField(
79+
model_name="historicalproject",
80+
name="path",
81+
field=models.CharField(
82+
blank=True,
83+
editable=False,
84+
help_text="The directory where <code>conf.py</code> lives",
85+
max_length=255,
86+
null=True,
87+
verbose_name="Path",
88+
),
89+
),
90+
migrations.AlterField(
91+
model_name="historicalproject",
92+
name="python_interpreter",
93+
field=models.CharField(
94+
blank=True,
95+
choices=[("python", "CPython 2.x"), ("python3", "CPython 3.x")],
96+
default="python3",
97+
help_text="The Python interpreter used to create the virtual environment.",
98+
max_length=20,
99+
null=True,
100+
verbose_name="Python Interpreter",
101+
),
102+
),
103+
migrations.AlterField(
104+
model_name="historicalproject",
105+
name="use_system_packages",
106+
field=models.BooleanField(
107+
blank=True,
108+
default=False,
109+
help_text="Give the virtual environment access to the global site-packages dir.",
110+
null=True,
111+
verbose_name="Use system packages",
112+
),
113+
),
114+
migrations.AlterField(
115+
model_name="project",
116+
name="conf_py_file",
117+
field=models.CharField(
118+
blank=True,
119+
default="",
120+
help_text="Path from project root to <code>conf.py</code> file (ex. <code>docs/conf.py</code>). Leave blank if you want us to find it for you.",
121+
max_length=255,
122+
null=True,
123+
verbose_name="Python configuration file",
124+
),
125+
),
126+
migrations.AlterField(
127+
model_name="project",
128+
name="documentation_type",
129+
field=models.CharField(
130+
blank=True,
131+
choices=[
132+
("sphinx", "Sphinx Html"),
133+
("mkdocs", "Mkdocs"),
134+
("sphinx_htmldir", "Sphinx HtmlDir"),
135+
("sphinx_singlehtml", "Sphinx Single Page HTML"),
136+
],
137+
default="sphinx",
138+
help_text='Type of documentation you are building. <a href="http://www.sphinx-doc.org/en/stable/builders.html#sphinx.builders.html.DirectoryHTMLBuilder">More info on sphinx builders</a>.',
139+
max_length=20,
140+
null=True,
141+
verbose_name="Documentation type",
142+
),
143+
),
144+
migrations.AlterField(
145+
model_name="project",
146+
name="enable_epub_build",
147+
field=models.BooleanField(
148+
blank=True,
149+
default=False,
150+
help_text="Create a EPUB version of your documentation with each build.",
151+
null=True,
152+
verbose_name="Enable EPUB build",
153+
),
154+
),
155+
migrations.AlterField(
156+
model_name="project",
157+
name="enable_pdf_build",
158+
field=models.BooleanField(
159+
blank=True,
160+
default=False,
161+
help_text="Create a PDF version of your documentation with each build.",
162+
null=True,
163+
verbose_name="Enable PDF build",
164+
),
165+
),
166+
migrations.AlterField(
167+
model_name="project",
168+
name="install_project",
169+
field=models.BooleanField(
170+
blank=True,
171+
default=False,
172+
help_text="Install your project inside a virtualenv using <code>setup.py install</code>",
173+
null=True,
174+
verbose_name="Install Project",
175+
),
176+
),
177+
migrations.AlterField(
178+
model_name="project",
179+
name="path",
180+
field=models.CharField(
181+
blank=True,
182+
editable=False,
183+
help_text="The directory where <code>conf.py</code> lives",
184+
max_length=255,
185+
null=True,
186+
verbose_name="Path",
187+
),
188+
),
189+
migrations.AlterField(
190+
model_name="project",
191+
name="python_interpreter",
192+
field=models.CharField(
193+
blank=True,
194+
choices=[("python", "CPython 2.x"), ("python3", "CPython 3.x")],
195+
default="python3",
196+
help_text="The Python interpreter used to create the virtual environment.",
197+
max_length=20,
198+
null=True,
199+
verbose_name="Python Interpreter",
200+
),
201+
),
202+
migrations.AlterField(
203+
model_name="project",
204+
name="use_system_packages",
205+
field=models.BooleanField(
206+
blank=True,
207+
default=False,
208+
help_text="Give the virtual environment access to the global site-packages dir.",
209+
null=True,
210+
verbose_name="Use system packages",
211+
),
212+
),
213+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Generated by Django 4.2.10 on 2024-02-19 11:17
2+
3+
from django.db import migrations, models
4+
from django_safemigrate import Safe
5+
6+
7+
class Migration(migrations.Migration):
8+
safe = Safe.after_deploy
9+
10+
dependencies = [
11+
("projects", "0115_mark_fields_as_null"),
12+
]
13+
14+
operations = [
15+
migrations.RemoveField(
16+
model_name="historicalproject",
17+
name="conf_py_file",
18+
),
19+
migrations.RemoveField(
20+
model_name="historicalproject",
21+
name="enable_epub_build",
22+
),
23+
migrations.RemoveField(
24+
model_name="historicalproject",
25+
name="enable_pdf_build",
26+
),
27+
migrations.RemoveField(
28+
model_name="historicalproject",
29+
name="install_project",
30+
),
31+
migrations.RemoveField(
32+
model_name="historicalproject",
33+
name="path",
34+
),
35+
migrations.RemoveField(
36+
model_name="historicalproject",
37+
name="python_interpreter",
38+
),
39+
migrations.RemoveField(
40+
model_name="historicalproject",
41+
name="use_system_packages",
42+
),
43+
migrations.RemoveField(
44+
model_name="project",
45+
name="conf_py_file",
46+
),
47+
migrations.RemoveField(
48+
model_name="project",
49+
name="enable_epub_build",
50+
),
51+
migrations.RemoveField(
52+
model_name="project",
53+
name="enable_pdf_build",
54+
),
55+
migrations.RemoveField(
56+
model_name="project",
57+
name="install_project",
58+
),
59+
migrations.RemoveField(
60+
model_name="project",
61+
name="path",
62+
),
63+
migrations.RemoveField(
64+
model_name="project",
65+
name="python_interpreter",
66+
),
67+
migrations.RemoveField(
68+
model_name="project",
69+
name="use_system_packages",
70+
),
71+
migrations.AlterField(
72+
model_name="historicalproject",
73+
name="documentation_type",
74+
field=models.CharField(
75+
choices=[
76+
("sphinx", "Sphinx Html"),
77+
("mkdocs", "Mkdocs"),
78+
("sphinx_htmldir", "Sphinx HtmlDir"),
79+
("sphinx_singlehtml", "Sphinx Single Page HTML"),
80+
],
81+
default="sphinx",
82+
help_text='Type of documentation you are building. <a href="http://www.sphinx-doc.org/en/stable/builders.html#sphinx.builders.html.DirectoryHTMLBuilder">More info on sphinx builders</a>.',
83+
max_length=20,
84+
verbose_name="Documentation type",
85+
),
86+
),
87+
migrations.AlterField(
88+
model_name="project",
89+
name="documentation_type",
90+
field=models.CharField(
91+
choices=[
92+
("sphinx", "Sphinx Html"),
93+
("mkdocs", "Mkdocs"),
94+
("sphinx_htmldir", "Sphinx HtmlDir"),
95+
("sphinx_singlehtml", "Sphinx Single Page HTML"),
96+
],
97+
default="sphinx",
98+
help_text='Type of documentation you are building. <a href="http://www.sphinx-doc.org/en/stable/builders.html#sphinx.builders.html.DirectoryHTMLBuilder">More info on sphinx builders</a>.',
99+
max_length=20,
100+
verbose_name="Documentation type",
101+
),
102+
),
103+
]

0 commit comments

Comments
 (0)