This commit is contained in:
Oliver Walters 2020-05-22 21:31:21 +10:00
parent 0ec880290b
commit 1ad7e699a9
3 changed files with 1 additions and 2 deletions

View File

@ -372,7 +372,6 @@ class Part(MPTTModel):
return templates return templates
def get_absolute_url(self): def get_absolute_url(self):
""" Return the web URL for viewing this part """ """ Return the web URL for viewing this part """
return reverse('part-detail', kwargs={'pk': self.id}) return reverse('part-detail', kwargs={'pk': self.id})

View File

@ -6,6 +6,7 @@ from django.contrib import admin
from .models import ReportTemplate, ReportAsset from .models import ReportTemplate, ReportAsset
from .models import TestReport from .models import TestReport
class ReportTemplateAdmin(admin.ModelAdmin): class ReportTemplateAdmin(admin.ModelAdmin):
list_display = ('name', 'description', 'template') list_display = ('name', 'description', 'template')

View File

@ -192,7 +192,6 @@ class PartFilterMixin(models.Model):
return parts.exists() return parts.exists()
def get_part_filters(self): def get_part_filters(self):
""" Return a map of filters to be used for Part filtering """ """ Return a map of filters to be used for Part filtering """
return validateFilterString(self.part_filters) return validateFilterString(self.part_filters)