1
In a record of a Vaga inside the Django admin I have two fields: data_inicio and data_fim.
But I wish it wasn’t possible to put one data_fim less than data_inicio, and I don’t know how it can be done in the Django admin. The code of the vacancy admin lies like this:
@admin.register(Vaga)
class VagaAdmin(admin.ModelAdmin):
list_display = ('titulo', 'data_inicio', 'data_fim')
If anyone has a sense of how this can be done, or any link that might help, I would be grateful.

Hi paulo, I arrived at a similar solution earlier, but in the Meta class I added Fields. I will mark the answer as a solution.
– Leonardo Furtado