OpenDroneMap-WebODM/app/templatetags/bootstrap_extras.py

6 wiersze
152 B
Python
Czysty Zwykły widok Historia

2016-08-10 20:23:17 +00:00
from django import template
register = template.Library()
@register.filter()
def with_class(field, css):
return field.as_widget(attrs={"class":css})