Enabled more of HACKING
This commit is contained in:
parent
31ca1960c0
commit
8103db2161
@ -10,7 +10,6 @@ from django.test import TestCase
|
||||
|
||||
class SimpleTest(TestCase):
|
||||
def test_basic_addition(self):
|
||||
"""
|
||||
Tests that 1 + 1 always equals 2.
|
||||
"""Tests that 1 + 1 always equals 2.
|
||||
"""
|
||||
self.assertEqual(1 + 1, 2)
|
||||
|
@ -14,13 +14,18 @@
|
||||
# under the License.
|
||||
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.views.decorators.http import require_POST
|
||||
from django.contrib.auth.models import User
|
||||
from django.http import HttpResponseRedirect
|
||||
from django.shortcuts import render
|
||||
from django.contrib.auth.models import User
|
||||
from django.views.decorators.http import require_POST
|
||||
|
||||
from storyboard.projects.models import Project, Milestone, Series
|
||||
from storyboard.stories.models import Story, Task, Comment, StoryTag
|
||||
from storyboard.projects.models import Milestone
|
||||
from storyboard.projects.models import Project
|
||||
from storyboard.projects.models import Series
|
||||
from storyboard.stories.models import Comment
|
||||
from storyboard.stories.models import Story
|
||||
from storyboard.stories.models import StoryTag
|
||||
from storyboard.stories.models import Task
|
||||
|
||||
|
||||
def dashboard(request):
|
||||
@ -247,5 +252,5 @@ def edit_story(request, storyid):
|
||||
comment_type=comment_type)
|
||||
newcomment.save()
|
||||
except KeyError as e:
|
||||
print e
|
||||
print(e)
|
||||
return HttpResponseRedirect('/story/%s' % story.id)
|
||||
|
Loading…
Reference in New Issue
Block a user