Django: How to set a field to NULL?

Django: How to set a field to NULL?

정답은 None 을 저장하면 된다.

NULL로 다시 만들고 싶은 필드가 있다면, 파이썬 코드에서 어떻게 하는지 궁금해서 찾아봄

그냥 None 넣기

oitem.workline = None




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • a post with plotly.js
  • a post with image galleries
  • a post with tabs
  • a post with typograms
  • a post that can be cited