Skip to content Skip to sidebar Skip to footer
Showing posts with the label Mixins

Decorators Versus Inheritance

How do you decide between using decorators and inheritance when both are possible? E.g., this probl… Read more Decorators Versus Inheritance

Mixin Common Fields Between Serializers In Django Rest Framework

I have this: class GenericCharacterFieldMixin(): attributes = serializers.SerializerMethodField… Read more Mixin Common Fields Between Serializers In Django Rest Framework

What Are The Measures To Call A Python Code A Policy-based Design?

Description I wonder if the code I am showing can be considered as an example of policy-based desig… Read more What Are The Measures To Call A Python Code A Policy-based Design?