Commit Graph

195 Commits (f968bd9ffac5823e42af5c3a576e814d788dcbf1)

Author SHA1 Message Date
Fabio Caccamo 3f9dc0c58e Merge pull request #26 from 18F/uswds-theme
Add USWDS color scheme.
2017-06-13 10:38:12 +02:00
CM Lubinski cbd414485f Add USWDS color scheme.
As a first draft of a U.S. Web Design Standards theme, this selects uses
reasonable colors from its 508-compliant color pallet.
2017-06-12 17:48:42 -04:00
Fabio Caccamo ccb818043c Merge pull request #23 from 18F/bytes2unicode
Add migration to convert bytes to unicode.
2017-06-12 15:50:37 +02:00
Fabio Caccamo 07d4fd65ef Merge pull request #21 from 18F/future-safe
Specify a max_length on all ColorFields.
2017-06-12 15:49:44 +02:00
Fabio Caccamo 4dd7a9dd3d Merge pull request #20 from founders4schools/deprecation-warnings
Fix a Django deprecation warning
2017-06-12 11:42:05 +02:00
CM Lubinski 9ecaa3836c Add migration to convert bytes to unicode.
Python 2 and 3 treat strings differently; in 2 they are bytes and in 3 they
are unicode objects. The Theme fields' attributes were encoded as bytes in the
initial migration (0001) but should be unicode values, leading to a missing
migration whenever the code is ran on Python 3. This changeset "alters" all
the fields to set them to have unicode attributes rather than bytes.

For more context, we've more or less followed the steps outlined here:
https://docs.djangoproject.com/en/1.11/topics/migrations/#supporting-python-2-and-3
2017-06-09 11:41:15 -04:00
Bruno Alla 511ad909bf Run tests on Python 3.6 for Django 1.11+ 2017-06-09 16:27:13 +01:00
CM Lubinski 8fe6ffd3b2 Specify a max_length on all ColorFields.
Django-colorfield bumped up its default max_length from 10 to 18 characters in
bfe421b8. Though we've pinned the version of colorfields we're depending on,
we can make the future version upgrade easier now by locking our fields to
having a max length of 10 chars.
2017-06-09 11:26:46 -04:00
Bruno Alla d0f8d7514a Fix allow_failures 2017-06-09 15:56:05 +01:00
Bruno Alla 78d80bc129 Run tests against Django master 2017-06-09 15:49:54 +01:00
Bruno Alla 09bd082759 Fix the error on older versions of Django 2017-06-09 15:44:23 +01:00
Bruno Alla 70b4be757d Fix a Django deprecation warning
Replace deprecated assignment_tag:

`python/lib/python3.5/site-packages/admin_interface/templatetags/admin_interface_tags.py:11: RemovedInDjango20Warning: assignment_tag() is deprecated. Use simple_tag() instead`
2017-06-09 15:12:00 +01:00
Fabio Caccamo 486bfa9aba Updated version 2017-06-09 11:58:26 +02:00
Fabio Caccamo e19cd51803 Added per-request cache to get_admin_interface_theme template tag #19 2017-06-09 11:58:10 +02:00
Fabio Caccamo 2d8eeee425 Updated README [ci skip] 2017-05-24 12:46:42 +02:00
Fabio Caccamo ef35236c58 Updated version 2017-05-24 12:02:27 +02:00
Fabio Caccamo eb676d9841 Added 3 themes as fixtures (django, bootstrap, foundation) 2017-05-24 12:01:25 +02:00
Fabio Caccamo 2301eedc8b Added possibility to hide recent actions 2017-05-24 11:57:08 +02:00
Fabio Caccamo 2bc5c9f9ce Removed double space in field declaration 2017-05-24 11:56:16 +02:00
Fabio Caccamo 44bae8b515 Changed modeltranslation active tab font-weight to bold 2017-05-24 11:55:23 +02:00
Fabio Caccamo ed34055290 Renamed field css_header_title_color to title_color according to logo_color 2017-05-24 11:53:33 +02:00
Fabio Caccamo 8a9842c219 Added possibility to customize the default logo color 2017-05-24 11:44:46 +02:00
Fabio Caccamo b449a1140c Fixed related-modal preloader background image url urlencode 2017-05-24 11:31:36 +02:00
Fabio Caccamo 3b2e567387 Increased tests coverage 2017-05-23 12:31:14 +02:00
Fabio Caccamo f3c7695409 Merge branch 'master' of https://github.com/fabiocaccamo/django-admin-interface 2017-05-23 10:43:01 +02:00
Fabio Caccamo 15aefd48d3 Merge pull request #18 from founders4schools/bugfix/repr
Fix the representation of Theme model under Python 3
2017-05-23 10:24:10 +02:00
Bruno Alla f6c8e84b7b Fix representation of Theme models on Python 3 2017-05-22 18:21:51 +01:00
Bruno Alla 1865da3477 Write a test covering the representation of the model 2017-05-22 18:14:38 +01:00
Fabio Caccamo b25cf463eb Fixed theme switching bug 2017-05-22 18:56:22 +02:00
Fabio Caccamo 4ef14c248a Fixed filter horizontal css height 2017-05-22 18:56:00 +02:00
Fabio Caccamo 165a8e4572 Updated version 2017-05-19 12:59:19 +02:00
Fabio Caccamo a6df45a571 Improved responsive m2m selector, ckeditor and sorl-thumbnail widgets 2017-05-19 12:59:02 +02:00
Fabio Caccamo b24c6010d2 Updated version 2017-05-18 10:56:19 +02:00
Fabio Caccamo bb2dd77646 Fixed django-storages compatibility - #16 2017-05-18 10:56:06 +02:00
Fabio Caccamo 60f451d073 Updated version 2017-05-16 18:39:12 +02:00
Fabio Caccamo 4c182157eb Moved css to external files and added .admin-interface body class 2017-05-16 18:38:59 +02:00
Fabio Caccamo dd9de6ba42 Rendered admin logo width and height attributes only if available 2017-05-16 18:38:06 +02:00
Fabio Caccamo a09e13fb00 Fixed default theme logo reset if the logo exists 2017-05-16 18:36:39 +02:00
Fabio Caccamo c3cf8e4d10 Updated version 2017-05-11 16:55:32 +02:00
Fabio Caccamo a6ae4230f6 Improved scripts and styles order 2017-05-11 16:54:43 +02:00
Fabio Caccamo 07dc59747d Changed static files template tag 2017-05-11 16:54:14 +02:00
Fabio Caccamo 690d28dd8c Improved admin title generation 2017-05-11 16:53:19 +02:00
Fabio Caccamo 8db8528542 Fixed magnific-popup initialization error in admin pages without jquery 2017-05-11 16:52:34 +02:00
Fabio Caccamo cfac48db5d Enforced default theme logo creation 2017-05-11 12:07:35 +02:00
Fabio Caccamo f20d64c99f Updated README [ci skip] 2017-05-04 18:59:38 +02:00
Fabio Caccamo 4cf01aa1df Updated README [ci skip] 2017-05-04 18:52:03 +02:00
Fabio Caccamo 875269e314 Updated version 2017-05-04 17:58:40 +02:00
Fabio Caccamo 775f1cf42b Added related modal support (related objects popup displayed in modal window) 2017-05-04 17:58:19 +02:00
Fabio Caccamo cc0474940f Moved responsive css to extrahead block 2017-05-04 17:55:28 +02:00
Fabio Caccamo 97896e3690 Added more comments to custom css 2017-05-04 17:51:46 +02:00