MicroPyramid / Django-CRM

Open Source CRM based on Django
https://bottlecrm.io
MIT License
1.96k stars 892 forks source link

Few Bugs Fixed #510

Closed shaikhmudassir closed 1 year ago

shaikhmudassir commented 1 year ago

I made three changes.

common/serializer.py 1023b9ac57dc264aa2136918c437744fdaf7390b

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.

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 in params. No need to parse it.