feat/add-reporter-name-to-servicelog #79

Merged
Contributor

Added reporter name to limit the amount of api request our application has to make to the CRM

Added reporter name to limit the amount of api request our application has to make to the CRM
added tests for reporter name
All checks were successful
Verify Pull Request / tests (pull_request) Successful in 1m33s
eda8fc6bda
Dirk-Willem-van-Gulik left a comment
Owner

passes munster

passes munster
@ -150,6 +161,18 @@ class ServicelogSerializer(serializers.ModelSerializer):
return image.url
return None
def get_reporter_first_name(self, obj):

Fine to do this - and can help make things cleaner. But know that in django (and simular frameworks) you do not actually have to do this - object.reported. generally magically returns that field as if there was a get()er. ignoring the get_reporting() getting in the way.

Fine to do this - and can help make things cleaner. But know that in django (and simular frameworks) you do not actually have to do this - object.reported.<fieldname> generally magically returns that field as if there was a get()er. ignoring the get_reporting() getting in the way.
Sign in to join this conversation.
No reviewers
No labels
Draft
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
msl/intranet!79
No description provided.