Skip to content

Commit

Permalink
Merge branch 'feature/225-drag-drop-listview' of https://github.com/s…
Browse files Browse the repository at this point in the history
…anoma/django-arctic into feature/225-drag-drop-listview
  • Loading branch information
mmarcos committed Jan 15, 2018
2 parents 27223c3 + cb8da28 commit 68f036d
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 68f036d

Please sign in to comment.