[Fixed]-Django : duration in time

1👍

You set auto_now_add = True for time_delay field so django will not add this field to the form

class EventAdmin(admin.ModelAdmin):

    list_display = ('title', 'start', 'contact_time', 'user', 'fin', 'frequency', 'one_file_',)

    fieldsets = (
    (None, {
        'fields': ('title','start', 'contact_time', 'is_cancelled', 'calendar', 'user', 'description', ('frequency', 'fin' ), 'activated', 'one_file',)
    }),
)
    readonly_fields = ("time_delay",)
👤Anoop

Leave a comment