mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP
This commit is contained in:
parent
0ec880290b
commit
1ad7e699a9
@ -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})
|
||||||
|
@ -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')
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user