DevBJ

Main navigation

  • Home
  • About
  • Style Guide
  • Tags
  • Download
March 17, 2023

Django: How to set a field to NULL?

By Bongjun Hur in Django, none, NULL

Django: How to set a field to NULL?

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

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

그냥 None 넣기

oitem.workline = None

Share: Twitter Facebook
Bongjun Hur's Picture

About Bongjun Hur

BJ is a dev.

Seoul, Korea https://devbj.com
Twitter GitHub Instagram LinkedIn

© Scriptor all rights reserved. Theme by JustGoodThemes.

Back to the top ↑