nofusscomputing / centurion_erp

An ERP with a focus on ITSM and Automation
MIT License
0 stars 0 forks source link

Refactor ALL models to have a `get_url` function #366

Open jon-nfc opened 4 weeks ago

jon-nfc commented 4 weeks ago

So as to reduce the amount of locations for defining the logic for an items URL, Add a function to the model class that returns the models URL.

this will also be beneficial for any serializer that could potentially return multiple models as the models url would be derived from the model class.

Links