-
Notifications
You must be signed in to change notification settings - Fork 146
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
Template tags do not accept variable as argument #149
Comments
Hi I'll have a look as soon as possible Cheers |
I did not notice this issue and implemented my own version. I actually needed to mix context variables with strings like: The implementation should be able to handle an arbitrary number of variables and strings. I did not add any tests, but the current facebook tests were passing. Could someone also chime in on how I could run all tests? The tests.py classes inherit from object and not TestCase. Sorry for the noob question. I didn't find info on running the tests in the documentation. Here it is:
You can pull from: https://bitbucket.org/dori/django-socialregistration/ |
I have modified the openid_form tag to be able to work the same way:
|
For example, when I pass STATIC_URL to the facebook_button tag:
{% facebook_button STATIC_URL %}
the HTML output is:
To make it work, I changed the line 11 into
socialregistration/templatetags/__init__.py
by:and the line 27 by:
But this patch does not work for openID button.
So here is my full patch for
socialregistration/templatetags/__init__.py
:and
socialregistration/contrib/openid/templatetags/openid.py
is just likefacebook.py
:The text was updated successfully, but these errors were encountered: