Show More
@@ -1678,11 +1678,12 b' class Repository(Base, BaseModel):' | |||
|
1678 | 1678 | cascade="all, delete, delete-orphan") |
|
1679 | 1679 | ui = relationship('RepoRhodeCodeUi', cascade="all") |
|
1680 | 1680 | settings = relationship('RepoRhodeCodeSetting', cascade="all") |
|
1681 | integrations = relationship('Integration', | |
|
1682 | cascade="all, delete, delete-orphan") | |
|
1681 | integrations = relationship('Integration', cascade="all, delete, delete-orphan") | |
|
1683 | 1682 | |
|
1684 | 1683 | scoped_tokens = relationship('UserApiKeys', cascade="all") |
|
1685 | 1684 | |
|
1685 | artifacts = relationship('FileStore', cascade="all") | |
|
1686 | ||
|
1686 | 1687 | def __unicode__(self): |
|
1687 | 1688 | return u"<%s('%s:%s')>" % (self.__class__.__name__, self.repo_id, |
|
1688 | 1689 | safe_unicode(self.repo_name)) |
@@ -11,6 +11,7 b'' | |||
|
11 | 11 | (_('Attached scoped tokens'), len(c.rhodecode_db_repo.scoped_tokens), '', [x.user for x in c.rhodecode_db_repo.scoped_tokens]), |
|
12 | 12 | (_('Pull requests source'), len(c.rhodecode_db_repo.pull_requests_source), '', ['pr_id:{}, repo:{}'.format(x.pull_request_id,x.source_repo.repo_name) for x in c.rhodecode_db_repo.pull_requests_source]), |
|
13 | 13 | (_('Pull requests target'), len(c.rhodecode_db_repo.pull_requests_target), '', ['pr_id:{}, repo:{}'.format(x.pull_request_id,x.target_repo.repo_name) for x in c.rhodecode_db_repo.pull_requests_target]), |
|
14 | (_('Attached Artifacts'), len(c.rhodecode_db_repo.artifacts), '', ''), | |
|
14 | 15 | ] |
|
15 | 16 | %> |
|
16 | 17 |
General Comments 0
You need to be logged in to leave comments.
Login now