开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜