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

How to register FirebaseUser, FirebaseUserProvider in admin? #36

Open
juliangeissler opened this issue Aug 27, 2021 · 1 comment
Open

Comments

@juliangeissler
Copy link

Can someone help how to register the models of the package to be visible in the admin panel?

I thought It would work if i add an admins.py with the code below to the package

from django.contrib import admin
from .models import FirebaseUser, FirebaseUserProvider

admin.site.register(FirebaseUser)
admin.site.register(FirebaseUserProvider)
@tarikozket
Copy link

you can just import the models from the app and register them under an app's admin file (e.g. user/admin.py):

from drf_firebase_auth.models import FirebaseUser, FirebaseUserProvider

admin.site.register(FirebaseUser)
admin.site.register(FirebaseUserProvider)

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

2 participants