mirror of https://github.com/snachodog/mybuddy.git
Fix linting issues
This commit is contained in:
parent
796ba1ae7f
commit
e81d3c100c
|
@ -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',)
|
||||||
|
|
Loading…
Reference in New Issue