Some polishing on creation of new patches
authorMagnus Hagander <magnus@hagander.net>
Sat, 24 Aug 2013 13:11:37 +0000 (15:11 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sat, 24 Aug 2013 13:11:37 +0000 (15:11 +0200)
pgcommitfest/commitfest/forms.py
pgcommitfest/commitfest/views.py

index b2ba48eb81d067ee749a9cf8532251e7a03b18ed..6d4c115e9dee099ffa88ce6ec3ac87b702547340 100644 (file)
@@ -51,7 +51,7 @@ class PatchForm(forms.ModelForm):
 
 class NewPatchForm(forms.ModelForm):
        threadmsgid = forms.CharField(max_length=200, required=True, label='Specify thread msgid', widget=ThreadPickWidget)
-       patchfile = forms.FileField(allow_empty_file=False, max_length=50000, label='or upload patch file', required=False, help_text='This may be supported sometime in the future, and would then autogenerate a mail to the hackers list. At such a time, the threadmsgid would no longer be required.')
+#      patchfile = forms.FileField(allow_empty_file=False, max_length=50000, label='or upload patch file', required=False, help_text='This may be supported sometime in the future, and would then autogenerate a mail to the hackers list. At such a time, the threadmsgid would no longer be required.')
 
        class Meta:
                model = Patch
index cec486eb763394ce028aec5b59257574e6f45ed5..ea81d6463026249a3f66716ea2540b7c3f3c24b8 100644 (file)
@@ -172,7 +172,7 @@ def newpatch(request, cfid):
                        except Http404:
                                # Thread not found!
                                # This is a horrible breakage of API layers
-                               form._errors['threadmsgid'] = form.error_class(('Selected thread did not exist',))
+                               form._errors['threadmsgid'] = form.error_class(('Selected thread did not exist in the archives',))
                        except Exception:
                                form._errors['threadmsgid'] = form.error_class(('An error occurred looking up the thread in the archives.',))
        else: