Good Morning, I'm customizing the ModelAdmin class inlines attribute. The code is this.
class NaveInline(admin.TabularInline): model = Nave fields = ['codigoNave', 'nave', 'tipoPuesta'] ordering = ['codigoNave'] extra = 1 class GranjaAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': [('codigoGranja', 'granja'), ('empresa', 'tipoGranja'), ('regimen')]}), ('Datos adicionales', {'fields': [('direccion', 'localidad', 'codigoPostal', 'provincia', 'region', 'pais', 'telefonoPrincipal', 'telefonoMovil', 'fax', 'email', 'ceence','cea', 'maquina', 'clasificacionZootecnica', 'formaDeCria', 'notas')], 'classes': ['collapse']}), ] inlines = [NaveInline] . . . . . . Everything works perfectly, I can add granjas / naves, edit granjas / naves, and clear granjas. . but I can not do it is to delete naves that in this case are the lines (inlines). I do not get any errors, I can see the line selection check but the line deletion button DOES NOT APPEAR. Thanks for your help, Fernando -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c21e2ff0-a1d0-4f83-b6c9-bc91a8d1e7e2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.