1👍
My conditional in save_model only saved if obj.user == None
Changing that fixed it.
def save_model(self, request, obj, form, change):
if obj.user == None:
obj.user = request.user
obj.save()
Source:stackexchange.com
1👍
My conditional in save_model only saved if obj.user == None
Changing that fixed it.
def save_model(self, request, obj, form, change):
if obj.user == None:
obj.user = request.user
obj.save()