Skip to content

Commit

Permalink
Fix materilal fileinput styles for inlines.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaistrenkoAnton committed Jul 6, 2019
1 parent 88dfcab commit b4e07cf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions material/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
},
models.TimeField: {'widget': widgets.MaterialAdminTimeWidget},
models.TextField: {'widget': widgets.MaterialAdminTextareaWidget},
models.ImageField: {'widget': widgets.MaterialAdminFileWidget},
models.FileField: {'widget': widgets.MaterialAdminFileWidget},
}


Expand Down
5 changes: 0 additions & 5 deletions material/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ class MaterialAdminTimeWidget(forms.TimeInput):
template_name = 'material/widgets/time.html'


class MaterialAdminFileWidget(widgets.AdminFileWidget):
"""File input with material css styles"""
template_name = 'material/widgets/clearable_file_input.html'


class MaterialAdminTextareaWidget(widgets.AdminTextareaWidget):
"""Textarea with material css styles"""

Expand Down

0 comments on commit b4e07cf

Please sign in to comment.