Commit 3ebca800 authored by Michal Čihař's avatar Michal Čihař

Fix attribute name

parent 88cf7f6a
......@@ -639,7 +639,7 @@ class SubProject(models.Model):
'''
Returns subproject for linked repo.
'''
return SubProject.get_linked(self.repo)
return SubProject.objects.get_linked(self.repo)
@property
def git_repo(self):
......
......@@ -67,7 +67,7 @@ def validate_repo(val):
'''
from weblate.trans.models import SubProject
try:
repo = SubProject.get_linked(val)
repo = SubProject.objects.get_linked(val)
if repo is not None and repo.is_repo_link():
raise ValidationError(_('Can not link to linked repository!'))
except SubProject.DoesNotExist:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment