def add_view(self, request, **kwargs):
    "A custom add_view, to catch exceptions from 'save_model'.\n\n           Just to be clear, this is very filthy.\n        "
    try:
        return super(ClonedRepoAdmin, self).add_view(request, **kwargs)
    except ValidationError:
        return redirect(request.path)
A custom add_view, to catch exceptions from 'save_model'.

Just to be clear, this is very filthy.
def add_view(self, request, **kwargs):
    "A custom add_view, to catch exceptions from 'save_model'.\n\n           Just to be clear, this is very filthy.\n        "
    try:
        return super(ClonedRepoAdmin, self).add_view(request, **kwargs)
    except ValidationError:
        return redirect(request.path)