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

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