Querying based on form input and string operations in django

后端 未结 1 679
一整个雨季
一整个雨季 2021-01-29 10:44

Django fields in form

As question 4 in that describes, I need to get the form input and calculate design-id for each image uploaded. How do I query the database to get t

相关标签:
1条回答
  • 2021-01-29 10:59

    You don't access model instance attributes via dictionary notation. You need to use dot notation, as you have done everywhere else.

    image.design_id = string
    
    0 讨论(0)
提交回复
热议问题