I need an integer field which generates increasing integers. But I don't want it to be my primary key. In fact, it can't be, because I want the ability to manually reset it to something else. The auto-increment is just a default value.
If I do: > class Image(Model): > serial = AutoField() I get an error when I do syncdb or schemamigration: > AssertionError: AutoFields must have primary_key=True. Is this a bug? --- Roy Smith r...@panix.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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=en.