3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-11-04 17:06:27 +00:00
coope/coopeV3/widgets.py

12 lines
383 B
Python
Raw Normal View History

2018-10-05 22:03:02 +00:00
from django.forms.widgets import Select, Input
from django.template import Context, Template
from django.template.loader import get_template
2018-10-05 22:03:02 +00:00
class SearchField(Input):
def render(self, name, value, attrs=None):
2018-10-05 22:03:02 +00:00
#super().render(name, value, attrs)
template = get_template('search_field.html')
context = Context({})
return template.render(context)