[Answer]-How to create add button with ModelChoiceField in django?

1👍

I think this is the solution to remove ip field:

class Meta:
    model = System
    exclude = ["ip"]

and to have the + button you need to override this function in AddressAdmin

class AddressAdmin(ModelAdmin):
    def has_add_permission(self, request):
        return True
admin.site.register(Adress, AddressAdmin)

Leave a comment