django-suit
django-suit copied to clipboard
Calender and clock icons for date and datetime fields not displayed in tabular inlines
Django version: 1.10.4 Django Suit version: V2 Python version: 3.4
Calender and clock icons, displayed correctly for date and datetime fields in admin change forms, are not displayed in admin tabular inlines. Stacked inlines are ok.
Django: 1.9.12 Suit: V2 Suit install via "-e git://github.com/darklow/django-suit.git@v2#egg=django-suit"
It seems to affect all in-lines. Adding example images.
This is what is expected and what displays in a top-level ModelAdmin:
Same model and field as a StackedInline:
Same model and field as a TabularInline:
I have verified that the font-awesome css is loaded and that the font is downloading from the server correctly.
same here. Django 1.10 Suit v2
I've found a solution for this.
In the base.html comes with Django Suit, under {% block extrastyle %}
replace
<link href='{% static "suit/css/font-awesome.min.css" %}' rel='stylesheet' type='text/css'>
by
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
Is suit really dependant on access to maxcdn.bootstrapcdn.com
- would it not be better to make a local copy available (esp for internal use of Django where internet access is unreliable)?
Suit should not dependant on maxcdn, but you are right, my solution doesn't work well when offline.
But the local copy of suit seems broken for font-awesome to work for admin inlines
I don't think it's a problem with font-awesome, but rather with suits.css.