I've got two models:

class a (models.Model):
        id = models.AutoField (primary_key=True)
        name = models.CharField (max_length=50, blank=False,
db_index=True)
class aAdmin(admin.ModelAdmin):
        list_display = ('name',)
        search_fields = ['name']
admin.site.register(a,aAdmin)


class b(models.Model):
        id = models.AutoField (primary_key=True)
        name = models.CharField (max_length=50, blank=False,
db_index=True)
        CommunicationsStatus = models.CharField
(max_length=50,blank=False, db_index=True)
        active = models.IntegerField(blank=False,
choices=active_choices)
        order = models.IntegerField(blank=True, default=0)
        usedby = models.ManyToManyField('a')
class bAdmin(admin.ModelAdmin):
        list_display =
('name','active','order','CommunicationsStatus',)
        search_fields = ['name']
admin.site.register(b,bAdmin)



Note the usedby field in model b.  when i goto/admin and into that
model, I get the following error:

(1146, "Table 'AppSettings_b_usedby' doesn't exist")


Any idea what the heck that means?  It looks like it's trying to
create a table or something.  when i syncdb there's no action taken on
the database.

-- 
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.

Reply via email to