mirror of https://github.com/snachodog/mybuddy.git
Exclude duration (calculated) from model exports
This commit is contained in:
parent
c9f39437c2
commit
796ba1ae7f
|
@ -49,6 +49,7 @@ class DiaperChangeAdmin(ImportExportMixin, ExportActionMixin, admin.ModelAdmin):
|
||||||
class FeedingImportExportResource(ImportExportResourceBase):
|
class FeedingImportExportResource(ImportExportResourceBase):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = models.Feeding
|
model = models.Feeding
|
||||||
|
exclude = ('duration',)
|
||||||
|
|
||||||
|
|
||||||
@admin.register(models.Feeding)
|
@admin.register(models.Feeding)
|
||||||
|
@ -112,6 +113,7 @@ class TimerAdmin(admin.ModelAdmin):
|
||||||
class TummyTimeImportExportResource(ImportExportResourceBase):
|
class TummyTimeImportExportResource(ImportExportResourceBase):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = models.TummyTime
|
model = models.TummyTime
|
||||||
|
exclude = ('duration',)
|
||||||
|
|
||||||
|
|
||||||
@admin.register(models.TummyTime)
|
@admin.register(models.TummyTime)
|
||||||
|
|
Loading…
Reference in New Issue