diff options
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 4cd6683c32..98745d69f6 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -1493,7 +1493,13 @@ class Layer_Version(models.Model): | |||
1493 | return self.commit | 1493 | return self.commit |
1494 | return 'N/A' | 1494 | return 'N/A' |
1495 | 1495 | ||
1496 | def get_detailspage_url(self, project_id): | 1496 | def get_detailspage_url(self, project_id=None): |
1497 | """ returns the url to the layer details page uses own project | ||
1498 | field if project_id is not specified """ | ||
1499 | |||
1500 | if project_id is None: | ||
1501 | project_id = self.project.pk | ||
1502 | |||
1497 | return reverse('layerdetails', args=(project_id, self.pk)) | 1503 | return reverse('layerdetails', args=(project_id, self.pk)) |
1498 | 1504 | ||
1499 | def get_alldeps(self, project_id): | 1505 | def get_alldeps(self, project_id): |