Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename ProjectForm to AddProjectForm.

  • Loading branch information...
commit 500321206a037e459320e120e3a234be34dcf277 1 parent 48b9f61
@buchuki buchuki authored
View
2  greatbigcrane/project/forms.py
@@ -19,7 +19,7 @@
from project.models import Project
-class ProjectForm(forms.ModelForm):
+class AddProjectForm(forms.ModelForm):
class Meta:
model = Project
View
6 greatbigcrane/project/views.py
@@ -30,7 +30,7 @@
from job_queue.jobs import queue_job
from project.models import Project
-from project.forms import ProjectForm
+from project.forms import AddProjectForm
from preferences.models import Preference
from notifications.models import Notification
@@ -63,7 +63,7 @@ def view_project(request, project_id):
project=project_id,dismissed=False)[:10]})
def add_project(request):
- form = ProjectForm(request.POST or None)
+ form = AddProjectForm(request.POST or None)
if form.is_valid():
try:
base_dir = os.path.expanduser(form.cleaned_data['base_directory'])
@@ -95,7 +95,7 @@ def add_project(request):
def edit_project(request, project_id):
project = get_object_or_404(Project, id=project_id)
- form = ProjectForm(request.POST or None, instance=project)
+ form = AddProjectForm(request.POST or None, instance=project)
if form.is_valid():
instance = form.save()
return redirect(instance.get_absolute_url())
Please sign in to comment.
Something went wrong with that request. Please try again.