Answers for "check empty json attribute python"

0

empty check on django json field

// jsonfield default=list
Model.objects.filter(jsonfield__exact=[])

// jsonfield default=dict
Model.objects.filter(jsonfield__exact={})
Posted by: Guest on May-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language