Changes between Version 9 and Version 10 of CookBookCategoryDataModel
- Timestamp:
- Aug 21, 2005, 7:52:21 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookCategoryDataModel
v9 v10 36 36 return self.get_separator().join(p_list) 37 37 _parents_repr.short_description = "Category parents" 38 39 # TODO: Does anybody know a better solution??? 40 def _pre_save(self): 41 p_list = self._recurse_for_parents(self) 42 if self.category_name in p_list: 43 raise "You must not save a category in itself!" 38 44 39 45 def __repr__(self):