talentmap_api/position/models.py
Showing 3 of 3 total issues
File models.py
has 356 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import itertools from django.db.models import OuterRef, Subqueryfrom django.db import modelsfrom djchoices import DjangoChoices, ChoiceItem
Function assignment_pre_save
has a Cognitive Complexity of 22 (exceeds 7 allowed). Consider refactoring. Open
Open
def assignment_pre_save(sender, instance, **kwargs): ''' This listener performs operations during the pre-save cylce of the assignment. '''
- Read upRead up
Function update_relationships
has a Cognitive Complexity of 14 (exceeds 7 allowed). Consider refactoring. Open
Open
def update_relationships(self): ''' Update the position relationships ''' # Update language requirements
- Read upRead up