mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Fixed an exception error that happens when saving a category in the admin
This commit is contained in:
parent
410caf8e79
commit
840ea77f14
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ def items_for_tree_result(cl, result, form):
|
|||
if isinstance(f.rel, models.ManyToOneRel):
|
||||
result_repr = escape(getattr(result, f.name))
|
||||
else:
|
||||
result_repr = display_for_field(value, f)
|
||||
result_repr = display_for_field(value, f, '')
|
||||
if isinstance(f, models.DateField) or isinstance(f, models.TimeField):
|
||||
row_class = ' class="nowrap"'
|
||||
if first:
|
||||
|
|
|
|||
Loading…
Reference in a new issue