Django http Last-Modified header view mixin
Project description
Installation
$ [sudo] pip install django-http-last-modified-view
Examples
get_http_last_modified
from django_http_last_modified_view.views import HttpLastModifiedMixin
class MyView(HttpLastModifiedMixin,...):
def get_http_last_modified(self):
return self.obj.http_last_modified
dispatch
, self.http_last_modified
:
class MyView(HttpLastModifiedMixin,...):
def dispatch(self, *args, **kwargs):
self.http_last_modified = obj.last_modified_at
return super().dispatch(*args, **kwargs)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-http-last-modified-view-2020.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bafcf5ab364eeeb5cc272114035a99225bf5c1bf697f9e0b13b310a30eb81f45 |
|
MD5 | 21281ea143af3e30d29679653cbdfcef |
|
BLAKE2b-256 | 18c7524b160181299812b075ff49ff3cb01977aab5147b63126ced73827b577a |