Changes between Initial Version and Version 1 of Ticket #34160, comment 9
- Timestamp:
- Nov 16, 2022, 11:43:38 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34160, comment 9
initial v1 5 5 @deconstructible(path="django.db.models.Case") 6 6 class Case(SQLiteNumericMixin, Expression): 7 """8 An SQL searched CASE expression:9 10 CASE11 WHEN n > 012 THEN 'positive'13 WHEN n < 014 THEN 'negative'15 ELSE 'zero'16 END17 """18 19 7 template = "CASE %(cases)s ELSE %(default)s END" 20 8 case_joiner = " "