You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and then adding the call to get_user_model() in oneall_social_login() as so:
@register.inclusion_tag('oneall/social_login.html')
def oneall_social_login(user=None, **kwargs):
"""
This tag displays the Social Login or Social Link widget.
Don't forget to include ``{% oneall_header %}``!
:param user: Logged in user for Social Link mode; if not provided, it's Social Login mode.
:param kwargs: Widget options as documented by OneAll. For example, ``grid_sizes=[8,5]``
"""
User = get_user_model()
if isinstance(user, User):
The text was updated successfully, but these errors were encountered:
ckot
changed the title
oneall templatetag won't load
invalid templatetag 'oneall'
Apr 30, 2016
EDIT:
python 2.7.6
Django 1.8.12
django-oneall 1.1.2
I believe the culprit is an import error:
django_oneall/templatetags/oneall.py
and
User
is not defined inmodels.py
I remedied this by adding:
and then adding the call to
get_user_model()
inoneall_social_login()
as so:The text was updated successfully, but these errors were encountered: