From f55adc0c4003706a9bf81ca93e87978156de59d2 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 28 May 2015 19:36:30 +0100 Subject: [PATCH] Removed unnecessary select_related --- RIGS/versioning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RIGS/versioning.py b/RIGS/versioning.py index f94fc9db..1065aa3c 100644 --- a/RIGS/versioning.py +++ b/RIGS/versioning.py @@ -102,7 +102,7 @@ def get_versions_for_model(models): versions = reversion.models.Version.objects.filter( content_type__in = content_types, - ).select_related("revision","revision.version_set").order_by("-pk") + ).select_related("revision").order_by("-pk") return versions