Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to create form from Custom User Model #62

Open
kheide opened this issue Jan 8, 2014 · 1 comment
Open

Error when trying to create form from Custom User Model #62

kheide opened this issue Jan 8, 2014 · 1 comment

Comments

@kheide
Copy link

kheide commented Jan 8, 2014

Exception Value:
'PermissionManager' object has no attribute 'clone'
Exception Location: /Library/Python/2.7/site-packages/mongodbforms/fieldgenerator.py in generate_listfield, line 334

Thats the error I am getting..

views.py:

form = ProfileForm()

forms.py:

class ProfileForm(DocumentForm):

class Meta:
    document = Profile

Is this because mongodbforms doesnt support some of the fields from the user model?

@kheide
Copy link
Author

kheide commented Jan 8, 2014

If I specify my fields like this

fields = ['first_name','last_name']

it works fine. It seems like an issue with permission fields in the user model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant