summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2020-04-09 17:56:44 +0100
committerStephen Finucane <stephen@that.guru>2020-04-26 13:45:45 +0100
commit0910f9771113b7b6228b745ba9a74bd77f9b68ea (patch)
treea7b37d63f44c30a325e54f1847efd4481d856092
parentac0e4de9f56eb90d816a320f70d87c45d702432e (diff)
downloadpatchwork-0910f9771113b7b6228b745ba9a74bd77f9b68ea.tar
patchwork-0910f9771113b7b6228b745ba9a74bd77f9b68ea.tar.gz
models: Trivial post-merge cleanup
Signed-off-by: Stephen Finucane <stephen@that.guru>
-rw-r--r--patchwork/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/patchwork/models.py b/patchwork/models.py
index a5e7bea..77ab924 100644
--- a/patchwork/models.py
+++ b/patchwork/models.py
@@ -357,7 +357,7 @@ class FilenameMixin(object):
return fname
-class SubmissionMixin(models.Model):
+class SubmissionMixin(FilenameMixin, EmailMixin, models.Model):
# parent
project = models.ForeignKey(Project, on_delete=models.CASCADE)
@@ -387,7 +387,7 @@ class SubmissionMixin(models.Model):
abstract = True
-class Cover(FilenameMixin, EmailMixin, SubmissionMixin):
+class Cover(SubmissionMixin):
def get_absolute_url(self):
return reverse('cover-detail',
@@ -414,7 +414,7 @@ class Cover(FilenameMixin, EmailMixin, SubmissionMixin):
]
-class Patch(FilenameMixin, EmailMixin, SubmissionMixin):
+class Patch(SubmissionMixin):
diff = models.TextField(null=True, blank=True)
commit_ref = models.CharField(max_length=255, null=True, blank=True)