Closed Bug 798529 Opened 14 years ago Closed 14 years ago

[shipping] django forms enforce non-blank milestone name, which we need for releases

Categories

(Webtools Graveyard :: Elmo, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: peterbe)

Details

Attachments

(1 file)

When we moved the form validation on creating milestones to django forms, we apparently re-enforced that names are not ''. We need the names to be empty strings for release milestones, though. Not sure what it takes to fix that, peterbe, can you take a look?
Assignee: nobody → peterbe
Names? Where do we use "names"? The only form we have (apart from that for authentication) is SignoffFilterForm which takes milestone code, appversion code and a datetime.
Ignore that. I got it. In create_milestones() (apps/shipping/views/release.py) we use:: if not request.POST.get('name-%s' % av): return HttpResponseBadRequest("'name' not in posted details") new_miles[av]['name'] = request.POST['name-%s' % av] I'll change that to:: new_miles[av]['name'] = request.POST.get('name-%s' % av, '')
Attachment #668599 - Flags: review?(l10n)
Comment on attachment 668599 [details] [diff] [review] Names default to blank now Review of attachment 668599 [details] [diff] [review]: ----------------------------------------------------------------- Thanks. Sorry for filing the bug in a confusing way, I remembered that the admin panel doesn't like the empty names, or so, and guessed that this was the place where we started using django forms for verification. Didn't check the code before filing.
Attachment #668599 - Flags: review?(l10n) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.4
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: