Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2356 Lượt xem

Hello,

I need to increment by one the active_id for specific object for example if I create a new item its id will be 4 I need this id to take 4+1 and to be saved in the database as 5

How can I do it using the def create function??

Thanks

Ảnh đại diện
Huỷ bỏ