Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/sanoma/django-arctic int…
Browse files Browse the repository at this point in the history
…o feature/225-drag-drop-listview
  • Loading branch information
David-Esteves committed Jan 12, 2018
2 parents c054bcf + 1bd01cc commit cb8da28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</label>
{% else %}
<div class="form-group">
{{ field|float_label_hack }}
{{ field }}
<label for="{{ field.auto_id }}">
{% include 'arctic/partials/form_field_parts/field_label.html' %}
</label>
Expand Down
8 changes: 0 additions & 8 deletions arctic/templatetags/arctic_tags.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import (absolute_import, unicode_literals)

import copy
from collections import OrderedDict

from django import template
Expand Down Expand Up @@ -228,10 +227,3 @@ def get_item(dictionary, key):
@register.filter()
def get_attr(obj, item, default=None):
return getattr(obj, item, default)


@register.filter
def float_label_hack(obj):
new_obj = copy.deepcopy(obj)
new_obj.field.required = True
return new_obj

0 comments on commit cb8da28

Please sign in to comment.