HomePythonArchive by Category "Django"
Posted in Django, Python

Django Polymorphic Model

In this blog, we will learn about the use of the Polymorphic model of Django. Polymorphism: Polymorphism means the same function name (but different signatures) being uses for different types. Example: print(len(“geeks”)) output-:5 print(len([10, 20, 30])) output-:3 In the above example, len is a function that is used for different types. Polymorphic model is also based on […]