diff mbox series

[v2,6/6] models: Trivial post-merge cleanup

Message ID 20200409171302.105869-7-stephen@that.guru
State Accepted
Headers show
Series Remove 'Submission' model | expand

Commit Message

Stephen Finucane April 9, 2020, 5:13 p.m. UTC
Signed-off-by: Stephen Finucane <stephen@that.guru>
---
 patchwork/models.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git patchwork/models.py patchwork/models.py
index a5e7bea7..77ab9241 100644
--- patchwork/models.py
+++ 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)