aboutsummaryrefslogtreecommitdiff
path: root/snakeplan/projects/views/stories.py
diff options
context:
space:
mode:
Diffstat (limited to 'snakeplan/projects/views/stories.py')
-rw-r--r--snakeplan/projects/views/stories.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/snakeplan/projects/views/stories.py b/snakeplan/projects/views/stories.py
new file mode 100644
index 0000000..afcb373
--- /dev/null
+++ b/snakeplan/projects/views/stories.py
@@ -0,0 +1,29 @@
1# vim: set filencoding=utf8
2"""
3Story Views
4
5@author: Mike Crute (mcrute@gmail.com)
6@organization: SoftGroup Interactive, Inc.
7@date: July 10, 2010
8"""
9
10# Licensed under the Apache License, Version 2.0 (the "License");
11# you may not use this file except in compliance with the License.
12# You may obtain a copy of the License at
13#
14# http://www.apache.org/licenses/LICENSE-2.0
15#
16# Unless required by applicable law or agreed to in writing, software
17# distributed under the License is distributed on an "AS IS" BASIS,
18# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19# See the License for the specific language governing permissions and
20# limitations under the License.
21
22from django.views.generic import list_detail, create_update
23from django.core.urlresolvers import reverse
24
25from projects import models, forms
26
27def create_story(request):
28 return create_update.create_object(request, form_class=forms.StoryForm,
29 post_save_redirect=reverse('create-story'))