Self hosted FLOSS fitness/workout, nutrition and weight tracker
Exclude the user profile's temporary flag from the resource
Roland Geider05807ed84bfe
diff --git a/wger/manager/api/resources.py b/wger/manager/api/resources.pyindex 7c018562f..ea985ecd3 100644--- a/wger/manager/api/resources.py+++ b/wger/manager/api/resources.py@@ -49,6 +49,8 @@ class UserProfileResource(ModelResource):return object_list.filter(user=bundle.request.user)class Meta:++ excludes = ('is_temporary', )queryset = UserProfile.objects.all()authentication = ApiKeyAuthentication()authorization = UserObjectsOnlyAuthorization()diff --git a/wger/manager/tests/testcase.py b/wger/manager/tests/testcase.pyindex f62ee7ed2..e7350f908 100644--- a/wger/manager/tests/testcase.py+++ b/wger/manager/tests/testcase.py@@ -454,8 +454,6 @@ class ApiBaseResourceTestCase(ResourceTestCase, BaseTestCase):api_version = 'v1''''The current API version to test'''- formats = ('json',)-resource = 'workout''''The current resource to be tested (string)'''