Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #60 from praekelt/feature/issue-60-remove-static-w…
Browse files Browse the repository at this point in the history
…rapper-to-reference-to-character-counter-js

Remove static wrapper to reference to character counter js
  • Loading branch information
nathanbegbie committed Nov 24, 2017
2 parents 2fd1d24 + da28d8c commit d97672a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions molo/surveys/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from django import forms
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from django.contrib.staticfiles.templatetags.staticfiles import static
from django.core.exceptions import ValidationError
from django.forms.utils import ErrorList, flatatt
from django.utils.encoding import force_text
Expand All @@ -20,7 +19,7 @@

class CharacterCountWidget(forms.TextInput):
class Media:
js = (static('js/widgets/character_count.js'),)
js = ('js/widgets/character_count.js',)

def render(self, name, value, attrs=None):
if value is None:
Expand Down

0 comments on commit d97672a

Please sign in to comment.