diff options
Diffstat (limited to 'apps/patchwork/models.py')
-rw-r--r-- | apps/patchwork/models.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/patchwork/models.py b/apps/patchwork/models.py index 6ad4e1a..6959731 100644 --- a/apps/patchwork/models.py +++ b/apps/patchwork/models.py @@ -223,13 +223,8 @@ class Patch(models.Model): if self.submitter.user == user or self.delegate == user: return True - profile = user.get_profile() return self.project in user.get_profile().maintainer_projects.all() - def form(self): - f = PatchForm(instance = self, prefix = self.id) - return f - def filename(self): fname_re = re.compile('[^-_A-Za-z0-9\.]+') str = fname_re.sub('-', self.name) @@ -256,7 +251,6 @@ class Patch(models.Model): else: postscript = '' - responses = False for comment in Comment.objects.filter(patch = self) \ .exclude(msgid = self.msgid): body += comment.patch_responses() |