Couldn't these two lines just be `cls.objects.get`, and then catch `cls.DoesNotExist`?