python - Query by empty JsonField in django -
i need query model jsonfield, want records have empty value ([]):
i used mymodel.objects.filter(myjsonfield=[]) it's not working, returns 0 result though there's records having myjsonfield=[]
try mymodel.objects.filter(myjsonfield='[]').
Comments
Post a Comment