stuartmackay / django-daterange-filterspec Goto Github PK
View Code? Open in Web Editor NEWA filterspec for the Django admin that allow you to filter records on a range of dates.
License: BSD 3-Clause "New" or "Revised" License
A filterspec for the Django admin that allow you to filter records on a range of dates.
License: BSD 3-Clause "New" or "Revised" License
maybe this is a Bug, or a user problem, but...
If you need remove the delete_selected actions from django-admin apps you need wrote this code...
def get_actions(self, request):
actions = super(ArticulosAdmin, self).get_actions(request)
if 'delete_selected' in actions:
del actions['delete_selected']
return actions
def has_delete_permission(self, request, obj=None):
return False
look at http://pastebin.com/FXepv7BS and try.
If add this code in admin.py the Icon and today link disappear.
Why I dont know?
Hello,
When I try to follow the instructions provided, I get the error ModuleNotFoundError: No module named 'daterange'
I am using Django 3.2 with Python 3.8.
I have narrowed it down to the value in INSTALLED_APPS being the one it's complaining about. Any help or advice?
("post__date", DateRangeFilter)
will trunc the post__
from the URL search query param and throw a FieldError
.
For reference, using the simple builtin Django filter for relative time filtering, ("post__date", DateFieldListFilter)
, results in a correct URL search query param.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.