Changes between Version 56 and Version 57 of RemovingTheMagic


Ignore:
Timestamp:
Jan 30, 2006, 5:41:59 PM (19 years ago)
Author:
Adrian Holovaty
Comment:

Updated to reflect manager.klass -> manager.model change in [2193]

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v56 v57  
    510510}}}
    511511
    512 If a manager needs to access its associated class, it should use {{{self.klass}}}. Example:
     512If a manager needs to access its associated class, it should use {{{self.model}}}. Example:
    513513
    514514{{{
     
    518518        try:
    519519            return self.get_object(fun__exact=True)
    520         except self.klass.DoesNotExist:
     520        except self.model.DoesNotExist:
    521521            print "Doesn't exist."
    522522}}}
Back to Top