Fix linting issues

This commit is contained in:
Christopher C. Wells 2020-02-17 06:22:46 -08:00 committed by Christopher Charbonneau Wells
parent 796ba1ae7f
commit e81d3c100c
1 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class ImportExportResourceBase(resources.ModelResource):
attribute='child__first_name', readonly=True) attribute='child__first_name', readonly=True)
child_last_name = fields.Field(attribute='child__last_name', readonly=True) child_last_name = fields.Field(attribute='child__last_name', readonly=True)
class ChildImportExportResource(resources.ModelResource): class ChildImportExportResource(resources.ModelResource):
class Meta: class Meta:
model = models.Child model = models.Child
@ -39,7 +39,8 @@ class DiaperChangeImportExportResource(ImportExportResourceBase):
@admin.register(models.DiaperChange) @admin.register(models.DiaperChange)
class DiaperChangeAdmin(ImportExportMixin, ExportActionMixin, admin.ModelAdmin): class DiaperChangeAdmin(ImportExportMixin, ExportActionMixin,
admin.ModelAdmin):
list_display = ('child', 'time', 'wet', 'solid', 'color') list_display = ('child', 'time', 'wet', 'solid', 'color')
list_filter = ('child', 'wet', 'solid', 'color') list_filter = ('child', 'wet', 'solid', 'color')
search_fields = ('child__first_name', 'child__last_name',) search_fields = ('child__first_name', 'child__last_name',)