(cls, **kwargs)
Get or create a Price.
Get or create a Price.
Get or create a Price .
def get_or_create(cls, **kwargs):
        """Get or create a Price."""

        try:
            return Price.objects.get(id=kwargs["id"]), False
        except Price.DoesNotExist:
            return cls.create(**kwargs), True
def get_or_create ( cls , * * kwargs ) : try : return Price . objects . get ( id = kwargs [ "id" ] ) , False except Price . DoesNotExist : return cls . create ( * * kwargs ) , True