You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using ModelAdmin Example, as default enable_bulk_create is False
class CategoryAdmin(admin.ModelAdmin):
page_schema = "Category"
model = Category
#enable_bulk_create = True
post to /admin/CategoryAdmin/item
use data [{"name":"1","description":"1"},{"name":"2","description":"2"}], get correct response value_error.jsondecode.
but use data [{"name":"1","description":"1"}], get wrong response msg : success"data" : {"name" : "description", "description" : ""}`
change enable_bulk_create = True
class CategoryAdmin(admin.ModelAdmin):
page_schema = "Category"
model = Category
enable_bulk_create = True
post to /admin/CategoryAdmin/item
use data [{"name":"1","description":"1"}] or [{"name":"1","description":"1"},{"name":"2","description":"2"}], get same wrong response msg : success"data" : {"name" : "description", "description" : ""}`
The text was updated successfully, but these errors were encountered:
using ModelAdmin Example, as default enable_bulk_create is False
post to
/admin/CategoryAdmin/item
use data
[{"name":"1","description":"1"},{"name":"2","description":"2"}]
, get correct response value_error.jsondecode.but use data
[{"name":"1","description":"1"}]
, get wrong responsemsg : success
"data"
: {"name" : "description", "description" : ""}`change enable_bulk_create = True
post to
/admin/CategoryAdmin/item
use data
[{"name":"1","description":"1"}]
or[{"name":"1","description":"1"},{"name":"2","description":"2"}]
, get same wrong responsemsg : success
"data"
: {"name" : "description", "description" : ""}`The text was updated successfully, but these errors were encountered: