fixed reverse relationship naming (to default) and added ordering methods for calculated attributes

This commit is contained in:
Hedde van der Heide
2022-04-15 09:00:36 +02:00
parent a02acbc561
commit 18fed2c029
4 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ class SoftwareProductView(generic.ObjectView):
queryset = SoftwareProduct.objects.all()
def get_extra_context(self, request, instance):
versions = instance.softwareproduct_versions.all()
versions = instance.softwareproductversion_set.all()
return {"versions": versions}