This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.urls import reverse | |
from django.utils.html import format_html | |
class ListLinksMixin(object): | |
""" | |
Support for list_links attribute. Items in list_links must also be in list_display | |
Usage to make 'fieldTwo' a link: | |
list_display = ('fieldOne', 'fieldTwo',) | |
list_links = ('fieldTwo',) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script can be used to undelete objects from an S3 bucket. | |
# When run, it will print out a list of AWS commands to undelete files, which you | |
# can then pipe into Bash. | |
# | |
# e.g.: s3-undelete.sh <options> > files.txt; cat files.txt | bash | |
# | |
# You will need the AWS CLI tool from https://aws.amazon.com/cli/ in order to run this script. | |
# |