diff --git a/cookbook/forms.py b/cookbook/forms.py index b5dca7256..621e02192 100644 --- a/cookbook/forms.py +++ b/cookbook/forms.py @@ -1,6 +1,7 @@ from django import forms from django.forms import widgets from django.utils.translation import gettext as _ +from emoji_picker.widgets import EmojiPickerTextInput from .models import * @@ -10,11 +11,6 @@ class MultiSelectWidget(widgets.SelectMultiple): js = ('custom/js/form_multiselect.js',) -class EmojiWidget(forms.TextInput): - class Media: - js = ('custom/js/form_emoji.js',) - - class ExternalRecipeForm(forms.ModelForm): file_path = forms.CharField(disabled=True, required=False) storage = forms.ModelChoiceField(queryset=Storage.objects.all(), disabled=True, required=False) @@ -65,7 +61,7 @@ class KeywordForm(forms.ModelForm): class Meta: model = Keyword fields = ('name', 'icon', 'description') - widgets = {'icon': EmojiWidget} + widgets = {'icon': EmojiPickerTextInput} class StorageForm(forms.ModelForm): diff --git a/cookbook/templates/base.html b/cookbook/templates/base.html index 3ade8a660..8337df5e9 100644 --- a/cookbook/templates/base.html +++ b/cookbook/templates/base.html @@ -45,11 +45,6 @@ - - - - - {% block extra_head %} {% endblock %} diff --git a/cookbook/templates/recipe_view.html b/cookbook/templates/recipe_view.html index 53769c774..84f4fedb7 100644 --- a/cookbook/templates/recipe_view.html +++ b/cookbook/templates/recipe_view.html @@ -44,7 +44,7 @@