django class-based views with inline model-form or formset

前端 未结 7 1109
有刺的猬
有刺的猬 2020-11-28 18:08

I have the following models:

class Bill(models.Model):
    date = models.DateTimeField(_(\"Date of bill\"),null=True,blank=True)

class Item(models.Model):
          


        
7条回答
  •  甜味超标
    2020-11-28 18:55

    I red the generic source code of the 1.3-beta-1 :

    The code is absolutely not ready for List editing or there is some black magic here. But I think that it can be implemented quickly.

    If you look at the django.view.generic.edit (that support detailed object editing) module how it use the django.view.generic.detail module.

    I think that a django.view.generic.list_edit module can be implemented using django.view.generic.list and some part from django.view.generic.edit.

提交回复
热议问题