Skip to content

Commit bf59f13

Browse files
committed
revert models
1 parent e4d0add commit bf59f13

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

readthedocs/builds/models.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Models for the builds app."""
2-
32
import datetime
43
import os.path
54
import re
@@ -86,6 +85,7 @@
8685

8786

8887
class Version(TimeStampedModel):
88+
8989
"""Version of a ``Project``."""
9090

9191
project = models.ForeignKey(
@@ -567,6 +567,7 @@ def get_storage_paths(self, version_slug=None):
567567

568568

569569
class APIVersion(Version):
570+
570571
"""
571572
Version proxy model for API data deserialization.
572573
@@ -618,6 +619,7 @@ def save(self, *args, **kwargs):
618619

619620

620621
class Build(models.Model):
622+
621623
"""Build data."""
622624

623625
project = models.ForeignKey(
@@ -1013,6 +1015,7 @@ def reset(self):
10131015

10141016

10151017
class BuildCommandResultMixin:
1018+
10161019
"""
10171020
Mixin for common command result methods/properties.
10181021
@@ -1036,6 +1039,7 @@ def failed(self):
10361039

10371040

10381041
class BuildCommandResult(BuildCommandResultMixin, models.Model):
1042+
10391043
"""Build command for a ``Build``."""
10401044

10411045
build = models.ForeignKey(
@@ -1068,6 +1072,7 @@ def run_time(self):
10681072

10691073

10701074
class VersionAutomationRule(PolymorphicModel, TimeStampedModel):
1075+
10711076
"""Versions automation rules for projects."""
10721077

10731078
ACTIVATE_VERSION_ACTION = "activate-version"

readthedocs/projects/models.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Project models."""
2-
32
import fnmatch
43
import hashlib
54
import hmac
@@ -81,6 +80,7 @@ def default_privacy_level():
8180

8281

8382
class ProjectRelationship(models.Model):
83+
8484
"""
8585
Project to project relationship.
8686
@@ -135,6 +135,7 @@ def subproject_prefix(self):
135135

136136

137137
class AddonsConfig(TimeStampedModel):
138+
138139
"""
139140
Addons project configuration.
140141
@@ -265,6 +266,7 @@ class AddonsConfig(TimeStampedModel):
265266

266267

267268
class AddonSearchFilter(TimeStampedModel):
269+
268270
"""
269271
Addon search user defined filter.
270272
@@ -277,6 +279,7 @@ class AddonSearchFilter(TimeStampedModel):
277279

278280

279281
class Project(models.Model):
282+
280283
"""Project model."""
281284

282285
# Auto fields
@@ -1429,6 +1432,7 @@ def organization(self):
14291432

14301433

14311434
class APIProject(Project):
1435+
14321436
"""
14331437
Project proxy model for API data deserialization.
14341438
@@ -1502,6 +1506,7 @@ def environment_variables(self, *, public_only=True):
15021506

15031507

15041508
class ImportedFile(models.Model):
1509+
15051510
"""
15061511
Imported files model.
15071512
@@ -1553,6 +1558,7 @@ def get_absolute_url(self):
15531558

15541559

15551560
class HTMLFile(ImportedFile):
1561+
15561562
"""
15571563
Imported HTML file Proxy model.
15581564
@@ -1574,6 +1580,7 @@ def processed_json(self):
15741580

15751581

15761582
class Notification(TimeStampedModel):
1583+
15771584
"""WebHook / Email notification attached to a Project."""
15781585

15791586
# TODO: Overridden from TimeStampedModel just to allow null values,
@@ -1738,6 +1745,7 @@ def sign_payload(self, payload):
17381745

17391746

17401747
class Domain(TimeStampedModel):
1748+
17411749
"""A custom domain name for a project."""
17421750

17431751
# TODO: Overridden from TimeStampedModel just to allow null values,
@@ -1861,6 +1869,7 @@ def save(self, *args, **kwargs):
18611869

18621870

18631871
class HTTPHeader(TimeStampedModel, models.Model):
1872+
18641873
"""
18651874
Define a HTTP header for a user Domain.
18661875
@@ -1903,6 +1912,7 @@ def __str__(self):
19031912

19041913

19051914
class Feature(models.Model):
1915+
19061916
"""
19071917
Project feature flags.
19081918

0 commit comments

Comments
 (0)