Changes between Version 56 and Version 57 of RemovingTheMagic


Ignore:
Timestamp:
01/30/2006 05:41:59 PM (10 years ago)
Author:
adrian
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