fix - improve response time of org linked ranchers
This commit is contained in:
@@ -16,6 +16,7 @@ class Herd(BaseModel):
|
||||
'Rancher',
|
||||
on_delete=models.CASCADE,
|
||||
related_name='herd',
|
||||
db_index=True,
|
||||
null=True
|
||||
)
|
||||
cooperative = models.ForeignKey(
|
||||
@@ -153,12 +154,14 @@ class RancherOrganizationLink(BaseModel):
|
||||
Organization,
|
||||
on_delete=models.CASCADE,
|
||||
related_name='rancher_links',
|
||||
db_index=True,
|
||||
null=True
|
||||
)
|
||||
rancher = models.ForeignKey(
|
||||
Rancher,
|
||||
on_delete=models.CASCADE,
|
||||
related_name='organization_links',
|
||||
db_index=True,
|
||||
null=True
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user