Skip to content

Commit

Permalink
Prepare 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
silentsokolov committed Apr 10, 2021
1 parent 6744b33 commit c0fa120
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## [Unreleased]

## [0.8.1] - 2021-04-10
### Fix
- Fixed problem with `ManifestStaticFilesStorage` #63

## [0.8.0] - 2021-04-10
### Added
- Compatibility Django 3.2
Expand Down Expand Up @@ -133,7 +137,8 @@
- Add get_timezone
- Drop support Django < 1.8

[Unreleased]: https://github.com/silentsokolov/django-admin-rangefilter/compare/v0.8.0...HEAD
[Unreleased]: https://github.com/silentsokolov/django-admin-rangefilter/compare/v0.8.1...HEAD
[0.8.1]: https://github.com/silentsokolov/django-admin-rangefilter/compare/v0.8.0...v0.8.1
[0.8.0]: https://github.com/silentsokolov/django-admin-rangefilter/compare/v0.7.0...v0.8.0
[0.7.0]: https://github.com/silentsokolov/django-admin-rangefilter/compare/v0.6.4...v0.7.0
[0.6.4]: https://github.com/silentsokolov/django-admin-rangefilter/compare/v0.6.3...v0.6.4
Expand Down
2 changes: 1 addition & 1 deletion rangefilter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import django

__author__ = 'Dmitriy Sokolov'
__version__ = '0.8.0'
__version__ = '0.8.1'

if django.VERSION < (3, 2):
default_app_config = 'rangefilter.apps.RangeFilterConfig'
Expand Down
11 changes: 7 additions & 4 deletions rangefilter/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@

class OnceCallMedia(object):
_is_rendered = False
_js = [
StaticNode.handle_simple('admin/js/calendar.js'),
StaticNode.handle_simple('admin/js/admin/DateTimeShortcuts.js'),
]

def __str__(self):
return str([str(s) for s in self._js])
Expand All @@ -53,6 +49,13 @@ def __call__(self):
self._is_rendered = True
return self._js

def get_js(self):
return [
StaticNode.handle_simple('admin/js/calendar.js'),
StaticNode.handle_simple('admin/js/admin/DateTimeShortcuts.js'),
]
_js = property(get_js)


class AdminSplitDateTime(BaseAdminSplitDateTime):
def format_output(self, rendered_widgets):
Expand Down

0 comments on commit c0fa120

Please sign in to comment.