# admin.py
from django.contrib import admin
from django.contrib.auth.models import User
from models import Account, Membership
class MembershipInline(admin.TabularInline):
model = Membership
class AccountAdmin(admin.ModelAdmin):
model = Account
inlines = [
MembershipInline,
]
admin.site.register(Account, AccountAdmin)
# models.py
from django.contrib.auth.models import User
from django.db import models
class Account(models.Model):
name = models.CharField(max_length=100)
logo = models.ImageField(upload_to='logo')
users = models.ManyToManyField(User, through='Membership')
class Membership(models.Model):
user = models.ForeignKey(User)
account = models.ForeignKey(Account)
Hi Sean
Thanks for the report. I'll try and take a look at this today and work
out what is going on. In the meantime - if you could open this as a
ticket, I'd be much obliged.
Yours,
Russ Magee %-)
Russ
I created a ticket for you http://code.djangoproject.com/ticket/12453.
Thanks for looking into this.
- Sean