• Posts
  • Launch Stations
  • Navigate here
Subscribe

tips

A collection of 1 post
Using @property decorator in Django
tips

Using @property decorator in Django

In this quick post, I will show you how to use @property decorator in Django models to make code clean and optimized. Instead of adding extra fields to our model, we can define a custom property that will use already existing fields to return the required data. Example Scenario We
Jan 8, 2022 — 2 min read
© 2022
  • Data & License
  • Contact
  • Github
Powered by Ghost