summaryrefslogtreecommitdiff
path: root/pgweb/docs/models.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-17 19:47:43 +0000
committerMagnus Hagander2019-01-17 19:47:43 +0000
commit0883ac6423857246cca412c159af7914ad06e631 (patch)
treed6bdc96b342301b97858f409873f66b030c76490 /pgweb/docs/models.py
parent87237f6536a1e6df112ca34818cf8459cb04fc68 (diff)
Fix whitespace and indentation, per pep8
Diffstat (limited to 'pgweb/docs/models.py')
-rw-r--r--pgweb/docs/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pgweb/docs/models.py b/pgweb/docs/models.py
index 7a522147..2e612417 100644
--- a/pgweb/docs/models.py
+++ b/pgweb/docs/models.py
@@ -1,6 +1,7 @@
from django.db import models
from pgweb.core.models import Version
+
class DocPage(models.Model):
id = models.AutoField(null=False, primary_key=True)
file = models.CharField(max_length=64, null=False, blank=False)
@@ -20,6 +21,7 @@ class DocPage(models.Model):
# Index file first, because we want to list versions by file
unique_together = [('file', 'version')]
+
class DocPageAlias(models.Model):
file1 = models.CharField(max_length=64, null=False, blank=False, unique=True)
file2 = models.CharField(max_length=64, null=False, blank=False, unique=True)
@@ -30,4 +32,4 @@ class DocPageAlias(models.Model):
# XXX: needs a unique functional index as well, see the migration!
class Meta:
db_table = 'docsalias'
- verbose_name_plural='Doc page aliases'
+ verbose_name_plural = 'Doc page aliases'