model_functions.py 212 B

12345678910
  1. from django.db.models import Func
  2. class PipeConcat(Func):
  3. """
  4. Double pipe based concat works with more types than the Concat function
  5. """
  6. template = "(%(expressions)s)"
  7. arg_joiner = " || "