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
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,
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
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
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
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>
6 matches
Mail list logo