-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Backend] General fixes #338 #344
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @mehmetemreakbulut. Your improvements which is mentioned in Issue 338 are okay. Uploading images to S3 works correctly. It makes sense to add new database tables. On the Comment object, CRUD operations function properly. I am merging this PR.
doctor_data = {} | ||
full_name = f"{request.data['firstname']} {request.data['lastname']}" | ||
doctor_data['full_name'] = full_name | ||
doctor_data['specialization']= Category.objects.get(name=request.data['branch']).id | ||
doctor_data['user'] = account.id | ||
doctor_serializer = DoctorSerializer(data=doctor_data) | ||
if doctor_serializer.is_valid(): | ||
doctor_serializer.save() | ||
doctor = doctor_serializer.save() | ||
print(request.FILES) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this print statement deleted?
print(request.FILES) | ||
if len(request.FILES) > 0: | ||
for filename, file in request.FILES.items(): | ||
print(filename) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this
Description:
Fundamental structure of APIs is built, however, we have to add new fields or configs to align with frontend and mobile. Some fixes we determined listed below.
Tasks Done:
Reviewer:
@oguzhandemirelx
Notes:
article/{article.id}/{image.id}.jpg
post/{post.id}/{image.id}.jpg
comment/{comment.id}/{image.id}.jpg
document/{account.id}/{filename}{extension}
longitude:float
andlatitude:float
paginator
we have developed.Issue: