Show More
@@ -1624,6 +1624,8 b' class Repository(Base, BaseModel):' | |||
|
1624 | 1624 | integrations = relationship('Integration', |
|
1625 | 1625 | cascade="all, delete, delete-orphan") |
|
1626 | 1626 | |
|
1627 | scoped_tokens = relationship('UserApiKeys', cascade="all") | |
|
1628 | ||
|
1627 | 1629 | def __unicode__(self): |
|
1628 | 1630 | return u"<%s('%s:%s')>" % (self.__class__.__name__, self.repo_id, |
|
1629 | 1631 | safe_unicode(self.repo_name)) |
@@ -6,6 +6,7 b'' | |||
|
6 | 6 | (_('Created on'), h.format_date(c.rhodecode_db_repo.created_on), '', ''), |
|
7 | 7 | (_('Updated on'), h.format_date(c.rhodecode_db_repo.updated_on), '', ''), |
|
8 | 8 | (_('Cached Commit id'), lambda: h.link_to(c.rhodecode_db_repo.changeset_cache.get('short_id'), h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.rhodecode_db_repo.changeset_cache.get('raw_id'))), '', ''), |
|
9 | (_('Attached scoped tokens'), len(c.rhodecode_db_repo.scoped_tokens), '', [x.user for x in c.rhodecode_db_repo.scoped_tokens]), | |
|
9 | 10 | ] |
|
10 | 11 | %> |
|
11 | 12 |
General Comments 0
You need to be logged in to leave comments.
Login now