refactor: Add function get_url
to tenancy models
ref: #248 #366 #391 nofusscomputing/centurion_erp_ui#29
This commit is contained in:
@ -110,6 +110,14 @@ class ProjectMilestone(ProjectCommonFieldsName):
|
||||
return self.name
|
||||
|
||||
|
||||
def get_url_kwargs(self) -> dict:
|
||||
|
||||
return {
|
||||
'project_id': self.project.id,
|
||||
'pk': self.id
|
||||
}
|
||||
|
||||
|
||||
@property
|
||||
def parent_object(self):
|
||||
""" Fetch the parent object """
|
||||
|
Reference in New Issue
Block a user