From 1ad7e699a9fa5c4467ccbe2fcd028459845da365 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 22 May 2020 21:31:21 +1000 Subject: [PATCH] PEP --- InvenTree/part/models.py | 1 - InvenTree/report/admin.py | 1 + InvenTree/report/models.py | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 58eeaef82a..31a35d8cd3 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -372,7 +372,6 @@ class Part(MPTTModel): return templates - def get_absolute_url(self): """ Return the web URL for viewing this part """ return reverse('part-detail', kwargs={'pk': self.id}) diff --git a/InvenTree/report/admin.py b/InvenTree/report/admin.py index 15d44931df..4183e8ee83 100644 --- a/InvenTree/report/admin.py +++ b/InvenTree/report/admin.py @@ -6,6 +6,7 @@ from django.contrib import admin from .models import ReportTemplate, ReportAsset from .models import TestReport + class ReportTemplateAdmin(admin.ModelAdmin): list_display = ('name', 'description', 'template') diff --git a/InvenTree/report/models.py b/InvenTree/report/models.py index 1c363059e7..60580b900d 100644 --- a/InvenTree/report/models.py +++ b/InvenTree/report/models.py @@ -192,7 +192,6 @@ class PartFilterMixin(models.Model): return parts.exists() - def get_part_filters(self): """ Return a map of filters to be used for Part filtering """ return validateFilterString(self.part_filters)