Hey I am trying to save myself some time and use a bit of setattr magic[1] on my models. However when I do that, and later need to fetch the value of the field, I get (insted of the actual value):
<django.db.models.fields.IntegerField object at 0xb75243ac> I suspect there is some django magic happening behind the scenes, and maybe the setattr trick is not at all possible. Can anyone shed some light on this? Thank you! [1] Like: setattr(MyModel, 'foo', models.IntegerField()) -- Christian Joergensen | Linux, programming or web consultancy http://www.razor.dk | Visit us at: http://www.gmta.info
signature.asc
Description: OpenPGP digital signature