from django.contrib.auth.models import User
from django import forms
from bootstrap.forms import BootstrapModelForm, BootstrapForm
import models


class ReleaseForm(BootstrapModelForm):
    class Meta:
        model = models.ReleaseStream

class ProjectForm(BootstrapModelForm):
    class Meta:
        model = models.Project
        exclude = ('idhash', 'created_by_user',)

class UserForm(BootstrapModelForm):
    password = forms.CharField(widget=forms.PasswordInput(), initial='')
    class Meta:
        model = User
        exclude = (
            'email', 'username', 'is_staff', 'is_active', 'is_superuser',
            'last_login', 'date_joined', 'groups', 'user_permissions'
        )

@@ -264,32 +264,91 @@
 trapModelForm):%0A
+    github_url = forms.CharField(label=%22Git checkout URL%22)%0A
     class Meta:%0A
@@ -428,16 +428,315 @@
 ser',)%0A%0A
+    def clean(self):%0A        cleaned_data = super(ProjectForm, self).clean()%0A%0A        uri = cleaned_data%5B'github_url'%5D.strip()%0A        if not (uri%5B-4:%5D == '.git'):%0A            raise forms.ValidationError(%22Not a valid Git URI%22)%0A%0A        cleaned_data%5B'github_url'%5D = uri%0A%0A        return cleaned_data%0A%0A
 class Us

Improve validation