-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
Have setting SPIRIT_AUTH_USER_MODEL (defaults to the AUTH_USER_MODEL) but can be overridden #319
Comments
I think there is no way to do that. If you share the DB between your site and Spirit, all users will be Spirit users. If you don't create a Spirit user profile, it won't matter, because the user is authenticated and assigned to request.user anyway. Not sure you can have two user models in Django. |
If you want to forbid some users from accessing the forum, you are better off creating a model with a OneToOneField to Django user model, and some |
I have done that. Only thing is still all the users show up in spirit:admin:users. I was looking for a non-intrusive way of listing only the spirit users. |
ye, one way is monkey patching this view |
probably something like this in a custom app: from spirit.user.admin import views
org_index = views._index
def new_index(request, queryset, template):
return org_index(request, queryset.filter(custom_user__has_forum_access=True), template)
views._index = new_index Another way is overriding the template and filtering there. |
Don't want all users on my site to be spirit users
The text was updated successfully, but these errors were encountered: