On Thu, Nov 19, 2009 at 4:50 PM, Ken MacDonald <drken...@gmail.com> wrote:
> Define a models.py as: > > from django.db import models > > # Create your models here. > class Cardrange(models.Model): > minbin = models.DecimalField(max_digits=12, decimal_places=0) > maxbin = models.DecimalField(max_digits=12, decimal_places=0) > > minpan = models.IntegerField() > maxpan = models.IntegerField() > > ... more fields and 'def __unicode__() ... > > Are you absolutely sure there is not: id = models.IntegerField(primary_key=True) among the "more fields"? Karen -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.