This is what the Django admin example looks like in the docs. Will look for a better solution