-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
in jet/dashboard/dashboard_modules/google_analytics.py add renderer=None #88
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in jet/dashboard/dashboard_modules/google_analytics.py add renderer=None class CredentialWidget(Widget): module = None def render(self, name, value, attrs=None, renderer=None): if value and len(value) > 0: link = '%s' % ( reverse('jet-dashboard:google-analytics-revoke', kwargs={'pk': self.module.model.pk}), force_str(('Revoke access')) ) else: link = '%s' % ( reverse('jet-dashboard:google-analytics-grant', kwargs={'pk': self.module.model.pk}), force_str(('Grant access')) ) attrs = self.build_attrs({ 'type': 'hidden', 'name': 'credential', }) attrs['value'] = force_unicode(value) if value else '' return format_html('%s<input{} />' % link, flatatt(attrs))
The text was updated successfully, but these errors were encountered: