widgets: add template name to let map widgets be overridden (#22202)

This commit is contained in:
Frédéric Péters 2018-03-01 14:24:39 +01:00
parent 7f2fd893d0
commit c8baf0fdaf
1 changed files with 2 additions and 0 deletions

View File

@ -2160,6 +2160,8 @@ $(function() {
class MapWidget(CompositeWidget):
template_name = 'qommon/forms/widgets/map.html'
def __init__(self, name, value=None, **kwargs):
CompositeWidget.__init__(self, name, value, **kwargs)
self.add(HiddenWidget, 'latlng', value=value)