Permalink
Browse files

enabled private repos

  • Loading branch information...
1 parent a8490a1 commit 9b1b453d33faf947c90dfea1b06de9d187296193 Joe McWilliams committed Mar 27, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 readthedocs/projects/forms.py
  2. +1 −1 readthedocs/projects/models.py
@@ -60,8 +60,8 @@ def clean_repo(self):
repo = self.cleaned_data.get('repo', '').strip()
if '&&' in repo or '|' in repo:
raise forms.ValidationError('Invalid character in repo name')
- elif '@' in repo:
- raise forms.ValidationError('It looks like you entered a private repo - please use the public (http:// or git://) clone url')
+# elif '@' in repo:
+# raise forms.ValidationError('It looks like you entered a private repo - please use the public (http:// or git://) clone url')
return repo
def save(self, *args, **kwargs):
@@ -49,7 +49,7 @@ class Project(models.Model):
slug = models.SlugField(max_length=255, unique=True)
description = models.TextField(blank=True,
help_text='The reStructuredText description of the project')
- repo = models.CharField(max_length=100, blank=True,
+ repo = models.CharField(max_length=150, blank=True,
help_text='Checkout URL for your code (hg, git, etc.). Ex. https://github.com/ericholscher/django-kong.git')
repo_type = models.CharField(max_length=10, choices=constants.REPO_CHOICES, default='git')
project_url = models.URLField(blank=True, help_text='The project\'s homepage', verify_exists=False)

0 comments on commit 9b1b453

Please sign in to comment.