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
get_or_create() returns a tuple:
customer.source, created = Source.objects.get_or_create(name="Website")
created → has a boolean value, is created or not.
created
customer.source → has an object of get_or_create() method.
customer.source
get_or_create()