Changes between Version 13 and Version 14 of ModelInheritance


Ignore:
Timestamp:
Feb 27, 2006, 4:27:02 PM (19 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ModelInheritance

    v13 v14  
    154154{{{
    155155class Place(models.Model):
     156    name = models.CharField(maxlength=50)
    156157    foo = 1
    157     def bar(self):
    158         return 2
    159     name = models.CharField(maxlength=50)
     158    def bar(self): return 2
    160159}}}
    161160
     
    165164{{{
    166165class Place(models.Model):
     166    _meta = ...
    167167    foo = 1
    168     def bar(self):
    169         return 2
    170     _meta = ...
     168    def bar(self): return 2
    171169}}}
    172170
Back to Top