def icon_url(self, request): '''Does not need to be overriden. Returns the virtual path to the icon that represents this field in the form edit screen. ''' return static_url('mootiro_form:static/fieldtypes/{}/icon.png' \ .format(type(self).__name__), request)
def script_url(self, request): '''Does not need to be overriden. Returns the virtual path to the javascript file that represents this field in the form edit screen. ''' return static_url('mootiro_form:static/fieldtypes/{}/editing.js' \ .format(type(self).__name__), request)