I must be missing something obvious here.  I'm just trying to extend the 
profile form like so:


# models.py
class Profile(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE)

    organizations = models.ManyToManyField(Organization, default=None, blank
=True)
    groups = models.ManyToManyField(Group, default=None, blank=True)


# admin.py
class ProfileAdmin(admin.ModelAdmin):
    model = Profile
    form = WebProfileForm
    
admin.site.register(Profile, ProfileAdmin)


# forms.py

class WebProfileForm(ProfileForm):

    class Meta(ProfileForm.Meta):
        model = Profile
        exclude = []


but I'm getting this error:

django.core.exceptions.FieldError: Unknown field(s) (username, first_name, 
last_name, email) specified for Profile

TIA,
Joel

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to