Supress Today link in Django admin date widget
I would开发者_如何转开发 like to suppress the today link that is available by default in Django admin for a date field.
Your best solution is to subclass the DateField widget used in the admin and tweak the render() method to not show the link.
You can find an example of the general approach to subclassing widgets here:
And to get that widget to be used in the admin, you can set that in the admin.py for the relevant app. Here's the official documentation on how to do that
精彩评论