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

[dependencies] Update django-organizations to 2.0 #178

Closed
nemesifier opened this issue Sep 24, 2020 · 10 comments
Closed

[dependencies] Update django-organizations to 2.0 #178

nemesifier opened this issue Sep 24, 2020 · 10 comments
Labels
enhancement Hacktoberfest Easy issues for attracting Hacktoberfest participants. help wanted

Comments

@nemesifier
Copy link
Member

Switch to django-organizations 2.0, ensuring tests pass the organization admin features work correctly.

@nemesifier nemesifier added the Hacktoberfest Easy issues for attracting Hacktoberfest participants. label Sep 24, 2020
@raisultan
Copy link

hi 👋 @nemesisdesign, I would like to help on this.

@nemesifier
Copy link
Member Author

@raisultan just go for it 👍

@raisultan
Copy link

@nemesisdesign, thanks!

@robd003
Copy link

robd003 commented Oct 9, 2020

I tried upgrading to the master branch where v2.0 is located but I'm getting this error when running tests:

<class 'openwisp_users.admin.OrganizationOwnerAdmin'>: (admin.E002) The value of 'raw_id_fields[0]' refers to 'organization_user', which is not an attribute of 'openwisp_users.OrganizationOwner'.
<class 'openwisp_users.admin.OrganizationOwnerAdmin'>: (admin.E002) The value of 'raw_id_fields[1]' refers to 'organization', which is not an attribute of 'openwisp_users.OrganizationOwner'.
<class 'openwisp_users.admin.OrganizationOwnerAdmin'>: (admin.E108) The value of 'list_display[1]' refers to 'organization', which is not a callable, an attribute of 'OrganizationOwnerAdmin', or an attribute or method on 'openwisp_users.OrganizationOwner'.
<class 'openwisp_users.admin.OrganizationOwnerInline'>: (admin.E202) 'openwisp_users.OrganizationOwner' has no ForeignKey to 'openwisp_users.Organization'.
<class 'openwisp_users.admin.OrganizationUserAdmin'>: (admin.E002) The value of 'raw_id_fields[0]' refers to 'user', which is not an attribute of 'openwisp_users.OrganizationUser'.
<class 'openwisp_users.admin.OrganizationUserAdmin'>: (admin.E002) The value of 'raw_id_fields[1]' refers to 'organization', which is not an attribute of 'openwisp_users.OrganizationUser'.
<class 'openwisp_users.admin.OrganizationUserAdmin'>: (admin.E108) The value of 'list_display[0]' refers to 'user', which is not a callable, an attribute of 'OrganizationUserAdmin', or an attribute or method on 'openwisp_users.OrganizationUser'.
<class 'openwisp_users.admin.OrganizationUserAdmin'>: (admin.E108) The value of 'list_display[1]' refers to 'organization', which is not a callable, an attribute of 'OrganizationUserAdmin', or an attribute or method on 'openwisp_users.OrganizationUser'.
<class 'openwisp_users.admin.OrganizationUserInline'>: (admin.E202) 'openwisp_users.OrganizationUser' has no ForeignKey to 'openwisp_users.User'.
openwisp_users.OrganizationUser: (models.E012) 'unique_together' refers to the nonexistent field 'organization'.
openwisp_users.OrganizationUser: (models.E012) 'unique_together' refers to the nonexistent field 'user'.
openwisp_users.OrganizationUser: (models.E015) 'ordering' refers to the nonexistent field, related field, or lookup 'organization'.
openwisp_users.OrganizationUser: (models.E015) 'ordering' refers to the nonexistent field, related field, or lookup 'user'.

@nemesifier
Copy link
Member Author

@robd003 thanks a lot for looking into it, a quick search in django-organizations yielded this issue: bennylope/django-organizations#203 in which other users are reporting the same.

See this comment: bennylope/django-organizations#203 (comment)

Maybe you can try that.

@robd003
Copy link

robd003 commented Oct 9, 2020

@nemesisdesign funny enough I was just about to post linking to that. I tried putting the AbstractUser / AbstractOrganization class at the front, but same issue.

@nemesifier
Copy link
Member Author

@robd003 I see. We may wait until it's resolved or a solution is pointed out. Unless you want to invest more time in it. If you're here for hacktoberfest though, there are many other issues you could help us with. Thanks 👍

@robd003
Copy link

robd003 commented Oct 9, 2020

@nemesisdesign I just wanted to improve openwisp-users :^)

I'm thinking of using this as part of my SaaS project.

@nemesifier
Copy link
Member Author

That's great to hear @robd003, here's two issues that would be very useful for everyone:

@nemesifier nemesifier added enhancement help wanted and removed Hacktoberfest Easy issues for attracting Hacktoberfest participants. labels Jan 13, 2021
@nemesifier nemesifier added the Hacktoberfest Easy issues for attracting Hacktoberfest participants. label Oct 1, 2021
@nemesifier
Copy link
Member Author

Closed by #298.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Hacktoberfest Easy issues for attracting Hacktoberfest participants. help wanted
Projects
Archived in project
Development

No branches or pull requests

3 participants