Commits

John Costa committed 4315c6b

force update

Comments (0)

Files changed (2)

feature_request/forms.py

                    'status', 'decline_type', 'decline_comments',
                     'active')
         
-    def save(self, request, member, submit=False):
+    def save(self, request, member, submit=False, fr_id=None):
         feature_request=super(FeatureRequestForm, self).save(commit=False)
+        if fr_id:
+            feature_request.id=fr_id
         feature_request.member = member
         feature_request.save()
         messages.add_message(request, messages.ERROR, 'Feature request "%s" has been saved.' % feature_request.request_title)

feature_request/views.py

     if request.method == 'POST':
         form = FeatureRequestForm(request.POST)
         if form.is_valid():
-            form.save(request, user)
+            form.save(request, user, fr_id=feature_request.id)
         return HttpResponseRedirect(reverse('feature_request_home'))
 
     form = FeatureRequestForm(model_to_dict(feature_request))