constants.py 390 B

123456789101112131415161718
  1. class constants:
  2. @staticmethod
  3. def empty_text() -> str:
  4. return str()
  5. @staticmethod
  6. def app_name() -> str:
  7. return str("app")
  8. @staticmethod
  9. def related_name(
  10. target: str,
  11. field: str | None = None
  12. ) -> str:
  13. if field is None:
  14. return target + "_prefetch"
  15. return target + "_field_ " + field + "_prefetch"