Skip to content

Commit

Permalink
django 4 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
meeb committed Apr 30, 2022
1 parent 7f8a257 commit 33bf47f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions django_cachekiller/templatetags/cdnstaticfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,18 @@ def render(self, context):
parts.fragment))


@register.tag('cdnstatic')
class CDNTagNode(Node):

def render(self, *args, **kwargs):
return refcache.get_ref()


@register.tag(name='cdnstatic')
def do_cdnstatic(parser, token):
url = do_static(parser, token)
return CDNStaticURLNode(url)


@register.tag('cdntag')
@register.tag(name='cdntag')
def do_cdntag(parser, token):
return refcache.get_ref()
return CDNTagNode()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup, find_packages


version = '0.8.0'
version = '0.8.1'


with open('README.md', 'rt') as f:
Expand Down

0 comments on commit 33bf47f

Please sign in to comment.