Explore my side projects and work using this link

Upsidedown is a WordPress theme design that brings blog posts rising above inverted header and footer components.

Django: How to set a field to NULL?

Written in

by

Advertisements

Django: How to set a field to NULL?

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

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

그냥 None 넣기

oitem.workline = None
Advertisements

Tags