Changes between Version 1 and Version 4 of Ticket #30844
- Timestamp:
- Oct 6, 2019, 11:11:16 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30844
- Property Component Uncategorized → Database layer (models, ORM)
- Property Type Uncategorized → New feature
-
Ticket #30844 – Description
v1 v4 20 20 def __init__(self, *args, **kwargs): 21 21 super().__init__(*args, **kwargs) 22 23 if type.name == 'cat':22 # another db query is triggered b/c select_related has populated the instance yet 23 if self.type.name == 'cat': 24 24 self.__class__ = CatMixin 25 25 else: