Is there any possibility to get object delete url in Django Admin, in change list template (change_list_results.html)? I must add icons (edit/delete) on results list and try to get that links for object.
相关问题
- Django __str__ returned non-string (type NoneType)
- Django & Amazon SES SMTP. Cannot send email
- Django check user group permissions
- Django restrict pages to certain users
- UnicodeEncodeError with attach_file on EmailMessag
相关文章
- Profiling Django with PyCharm
- Why doesn't Django enforce my unique_together
- MultiValueDictKeyError in Django admin
- Django/Heroku: FATAL: too many connections for rol
- Django is sooo slow? errno 32 broken pipe? dcramer
- Django: Replacement for the default ManyToMany Wid
- Upgrading transaction.commit_manually() to Django
- UnicodeEncodeError when saving ImageField containi
The delete url for a particular instance can be obtained via:
So, just add a method to your
ModelAdmin
to return that URL wrapped in appropriate HTML:And, then add that to
list_display
, like any other field on your model.