Changes between Initial Version and Version 1 of Ticket #10112


Ignore:
Timestamp:
Jan 23, 2009, 1:55:45 PM (16 years ago)
Author:
Alex Gaynor
Comment:

edited for readability, please use the preview feature :)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10112 – Description

    initial v1  
    22
    33Basically, I'm modifying one of my models to allow inheritance of a field so rather than keep the existing field which cannot be overridden with a function in the subclass, I'm creating a property to access the field - ie:
    4 
     4{{{
    55class Foo(model):
    66  _bar = TextField(db_column = 'bar')
     
    1212  def bar(self): whatever
    1313
    14 
     14}}}
    1515I think the db_column = 'bar' causes problems as there is a Foo.bar attribute so somewhere in the model this is screwing things up by making an infinite loop which for some reason is breaking the python runtime.
    1616
Back to Top