f213/education-backend

View on GitHub
src/apps/orders/models/order.py

Summary

Maintainability
A
0 mins
Test Coverage
A
98%

Merge this if statement with the enclosing one.
Open

                if getattr(self, f"{field.name}_id", None) is not None:

Merging collapsible if statements increases the code's readability.

Noncompliant Code Example

if condition1:
    if condition2:
        # ...

Compliant Solution

if condition1 and condition2:
    # ...

There are no issues that match your filters.

Category
Status