Changes between Version 56 and Version 57 of RemovingTheMagic
- Timestamp:
- Jan 30, 2006, 5:41:59 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RemovingTheMagic
v56 v57 510 510 }}} 511 511 512 If a manager needs to access its associated class, it should use {{{self. klass}}}. Example:512 If a manager needs to access its associated class, it should use {{{self.model}}}. Example: 513 513 514 514 {{{ … … 518 518 try: 519 519 return self.get_object(fun__exact=True) 520 except self. klass.DoesNotExist:520 except self.model.DoesNotExist: 521 521 print "Doesn't exist." 522 522 }}}