django admin interface not behaving properly in firefox.
|Reported by:||chs2048@…||Owned by:||Chris2048|
|Severity:||Normal||Keywords:||django firefox IE admin|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I have a simple Django app that connects to a database and allows me to administrate it.
It consists of a few models, and some inlines, but little else other than Django.
but I'm getting strange behavior when using firefox 13.0.1 (IE 8.0 works).
for the following inlines:
class UserRoleClientMembershipInline(admin.TabularInline): model = UserRoleClientMembership extra = 1 class UserRoleClientGroupMembershipInline(admin.TabularInline): model = UserRoleClientGroupMembership extra = 1 class UserAdmin(admin.ModelAdmin): inlines = [UserRoleClientMembershipInline, UserRoleClientGroupMembershipInline] admin.site.register(User, UserAdmin)
where the model 'user' is:
class User(models.Model): user_name = models.CharField(max_length=1024) roles = models.ManyToManyField(Role, through='UserRoleClientMembership') def __unicode__(self): return self.user_name class Meta: db_table = u'users'
When I try to add any user I get:
ValidationError at <url> [u'ManagementForm data is missing or has been tampered with']
Also, when I remove the second inline, adding users works, but if I enter incomplete data in the first inline, firefox doesn't always give a (second field required) like IE does, it just ignores the inline instead. At other times, firefox *has* added new users, and has displayed the field-required warning.
I should note that I'm running Django ontop of Jython ontop of tomcat6 (which has caused problems before), but in this case I'm curious as to why IE works correctly.
Change History (4)
comment:1 Changed 3 years ago by Chris2048 <chs2048@…>
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:3 Changed 3 years ago by aaugustin
- Resolution set to needsinfo
- Status changed from new to closed