Closed simkimsia closed 2 years ago
return prepare(ProductPackage.objects.get(pk=pk))
prepare
has to be called on a queryset, not a single object. Try:
return prepare(ProductPackage.objects.all).get(pk=pk)
Thanks @j4mie
Is everything okay? i see the badge as failing.
this is my code
then I get
AttributeError: 'ProductPackage' object has no attribute 'only'