Re: problem models.py code

2010-07-15 Thread Jagdeep Singh Malhi
Problem solve Thanks Django users - jagdeep singh -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: problem models.py code

2010-07-14 Thread xota
Sorry, I reply to this mail two times. On Jul 14, 7:47 pm, Alexandre González wrote: > Are you talking about > this:http://www.djangoproject.com/documentation/models/custom_pk/?? > > You must declar jono as: > > jono = models.PositiveIntergerField(primary_key=True) > > On Wed,

Re: problem models.py code

2010-07-14 Thread Nuno Maltez
Just set primary_key=True on your field: jono = models.PositiveIntegerField(primary_key=True) See the django documentation for details: http://docs.djangoproject.com/en/dev/topics/db/models/#id1 Nuno On Wed, Jul 14, 2010 at 6:38 PM, Jagdeep Singh Malhi wrote: > I try  

Re: problem models.py code

2010-07-14 Thread Alexandre González
Are you talking about this: http://www.djangoproject.com/documentation/models/custom_pk/ ?? You must declar jono as: jono = models.PositiveIntergerField(primary_key=True) On Wed, Jul 14, 2010 at 19:38, Jagdeep Singh Malhi wrote: > I try this code to create database in

Re: problem models.py code

2010-07-14 Thread Alexandre González
Are you talking about this: http://www.djangoproject.com/documentation/models/custom_pk/ ?? You must declar jono as: jono = models.PositiveIntergerField(primary_key=True) On Wed, Jul 14, 2010 at 19:38, Jagdeep Singh Malhi wrote: > I try this code to create database in

Re: problem models.py code

2010-07-14 Thread Subhranath Chunder
I'm not exactly sure what you want. So, I'm only assuming that you might be trying to do something like: jono = models.AutoField(unique=True) instead of what you're currently using. Thanks, Subhranath Chunder. On Wed, Jul 14, 2010 at 11:08 PM, Jagdeep Singh Malhi < singh.malh...@gmail.com>