Exclude duration (calculated) from model exports

This commit is contained in:
Christopher C. Wells 2020-02-17 06:21:38 -08:00 committed by Christopher Charbonneau Wells
parent c9f39437c2
commit 796ba1ae7f
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ class DiaperChangeAdmin(ImportExportMixin, ExportActionMixin, admin.ModelAdmin):
class FeedingImportExportResource(ImportExportResourceBase):
class Meta:
model = models.Feeding
exclude = ('duration',)
@admin.register(models.Feeding)
@ -112,6 +113,7 @@ class TimerAdmin(admin.ModelAdmin):
class TummyTimeImportExportResource(ImportExportResourceBase):
class Meta:
model = models.TummyTime
exclude = ('duration',)
@admin.register(models.TummyTime)