We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class CredentialWidget(Widget): module = None
def render(self, name, value, attrs=None, **renderer=None**): if value and len(value) > 0: link = '<a href="%s">%s</a>' % ( reverse('jet-dashboard:google-analytics-revoke', kwargs={'pk': self.module.model.pk}), force_str(_('Revoke access')) ) else: link = '<a href="%s">%s</a>' % ( 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:
No branches or pull requests
in jet/dashboard/dashboard_modules/google_analytics.py
add renderer=None
class CredentialWidget(Widget):
module = None
The text was updated successfully, but these errors were encountered: