Changes between Initial Version and Version 1 of Ticket #10112
- Timestamp:
- Jan 23, 2009, 1:55:45 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10112 – Description
initial v1 2 2 3 3 Basically, 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 {{{ 5 5 class Foo(model): 6 6 _bar = TextField(db_column = 'bar') … … 12 12 def bar(self): whatever 13 13 14 14 }}} 15 15 I 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. 16 16