[storm] django, column vs. attribute names
Michael Radziej
mir at noris.de
Wed Jul 18 15:18:49 BST 2007
Hi Gustavo,
I've started to experiment a little bit exploring whether storm can be used inside of
Django. Django has feature to decouple the column names used in the database
from the attribute names used when accessing the ORM in python, such as:
class DjangoModel(meta.Model):
bla = IntegerField(db_column="foo")
# ...
This relates to a table like this:
CREATE TABLE urx( foo=IntegerField [...] );
But I access models in python like this:
something = DjangoModel(bla=42);
Cheers,
Michael
--
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49-911-9352-0 - Fax +49-911-9352-100
http://www.noris.de - The IT-Outsourcing Company
Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk -
Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689
More information about the storm
mailing list