Django: Generic detail view must be called with either an object pk or a slug

后端 未结 6 844
别那么骄傲
别那么骄傲 2021-02-01 14:26

Getting this error when submitting the form associated with this view. Not sure what exactly is the problem, considering I have a form with a very similar structure and it works

6条回答
  •  迷失自我
    2021-02-01 15:16

    Update: In django 2.0.2, change this to:

    url(r'^facture/modifier//$', Facture_Update.as_view(), name='facture_update'),
    

提交回复
热议问题