开发者

How to program the EDIT and DELETE features in Model Form Django

开发者 https://www.devze.com 2023-03-15 09:41 出处:网络
I have the Models with fields. basic开发者_JAVA技巧ally i want to do the CRUD opertions like in admin.I have used

I have the Models with fields. basic开发者_JAVA技巧ally i want to do the CRUD opertions like in admin.I have used

Class Meta
      model = Modelname

Now my create part is done by defining function create_from.

I want to know that do i need to create separate functions to EDIT , DELETE , READ all Model data. Or i can use buildin admin functions for that. because all the functionality is already on admin side.


See https://docs.djangoproject.com/en/1.3/ref/class-based-views/ - especially the Editing Mixins on that page.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号