feat/add-reporter-name-to-servicelog #79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Tycho-van-den-Heuvel/intranet:feat/add-reporter-name-to-servicelog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added reporter name to limit the amount of api request our application has to make to the CRM
passes munster
@ -150,6 +161,18 @@ class ServicelogSerializer(serializers.ModelSerializer):return image.urlreturn Nonedef 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.