On Thu, Nov 19, 2009 at 4:50 PM, Ken MacDonald <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=.