📅  最后修改于: 2022-03-11 14:47:21.346000             🧑  作者: Mango
# Make sure to specify the kwargs
# Instead of
MyModel.objects.get_or_create(attr) # WRONG!
# Use
MyModel.objects.get_or_create(attr=attr) # CORRECT!