Closed shaikhmudassir closed 1 year ago
I made three changes.
Resolving AttributeError at /api/teams/ 'User' object has no attribute 'address' Also, getting an address from BillingAddressSerializer() is unnecessary. It is already available in the Profile model.
AttributeError at /api/teams/ 'User' object has no attribute 'address'
BillingAddressSerializer()
Profile
Team ID is in UUID format, so its datatype must be a string.
The assigned_to_list variable must be a list object, and it already comes in params. No need to parse it.
assigned_to_list
params
I made three changes.
common/serializer.py 1023b9ac57dc264aa2136918c437744fdaf7390b
Resolving
AttributeError at /api/teams/ 'User' object has no attribute 'address'
Also, getting an address fromBillingAddressSerializer()
is unnecessary. It is already available in theProfile
model.teams/urls.py d3c63bb51347c7396e2058e4156214ced5a3ee3a
Team ID is in UUID format, so its datatype must be a string.
teams/views.py aea05e85dccb40c5623382e2449f3004fdf480ac
The
assigned_to_list
variable must be a list object, and it already comes inparams
. No need to parse it.