I\'m trying to use get_or_create for some fields in my forms, but I\'m getting a 500 error when I try to do so.
One of the lines looks like this:
cus
Following @Tobu answer and @mipadi comment, in a more pythonic way, if not interested in the created flag, I would use:
customer.source, _ = Source.objects.get_or_create(name="Website")