dimanche 14 février 2021

What is equivalent of *Laravel Model's Global Scope* in Python or Django?

In general when data is queried using App\Models in laravel, we have a luxury to apply filters using Model Level Global scope and Local Scope.

Is there any equivalent in "Python"? May be in "Django"? Or may be in models.Model ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire