Re: please help me about enum attribute..

2010-01-12 Thread Chuck Harmston
As Gert said, these are questions that should be asked on django-users [1]; this list is for discussion about the development of Django, not development with Django. That said, there are detailed instructions in the docs [2] for using multiple databases. This support was rolled out recently (since

Re: please help me about enum attribute..

2010-01-12 Thread chiranjeevi muttoju
hello girt thank for ur reply. i have another problem, could u please help me.. i want to use the multiple database in django.. i fallowed somany procedures.. but i cont able to get how to use.. could u please tell me in detailed the process for multiple databases in django.. with sample settings

Re: please help me about enum attribute..

2010-01-12 Thread Gert Van Gool
You should use instance.get_gender_display(). See http://www.djangoproject.com/documentation/models/choices/ for more information... I do believe this is more a question for django-users. -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Tue, Jan 12, 2010 at 12:38, 'chiru'tha wrot

please help me about enum attribute..

2010-01-12 Thread 'chiru'tha
Hi every one.. i got a problem.. please help me.. I create a class for my model, in that class i declare an property gender and i make it as enum.. it stores M or F only to the database. the sample code is shown bellow.. GENDER_CHOICES = ( (u'M', u'Male'), (u'F', u'Female'),