app.models.document.Document.get_or_create

classmethod Document.get_or_create(**kwargs)