We’re probably going to need more information here.
Posting the complete error is usually more helpful than just posting one line. We can’t tell what line is generating this error or what file should be looked at to answer your question.
The only place I see - in this bit of code at least - that could be generating this error is this:
Profile_service is generated using a filter, when what you really want is a get. filter returns a queryset, so you would need to take the first value from that, either using first() or just [0] - that would give you an instance of a Profile - assuming that that filter actually matches a record that is!
Using get instead of filter is probably better though - that will return an object, though will fail if the key you specify does not exist, so you’d need to handle that.
Also, you have some very strange naming conventions here - these would likely get picked up in code review at a company.
Classnames should be like ClassName
Method names should be like method_name
Variable names should be lower case: service not Service, head_service not Head_service
The code will run with the unusual conventions, but it makes things harder to read, as most coders will, for example, look at a reference to Service and initially assume it’s a class/model …