You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Skip 'ipr' and 'contact_type' fields in BaseContactForm
* Move update() to new.py
* Get the update submitter in update() and overwrite the ipr submitter with it when updating.
* Remove ? from trailing slash in about - the addslashes middleware will get there first anyway, and the ? confuses reverse()
- Legacy-Id: 705
# We're either asking for initial permission or we're in
312
+
# the general ipr form. If the POST argument has the first
313
+
# field of the ipr form, then we must be dealing with that,
314
+
# so just pass through - otherwise, collect the updater's
315
+
# info first.
316
+
submitter=None
317
+
ifnot(request.POST.has_key('legal_name')):
318
+
classUpdateForm(BaseContactForm):
319
+
def__init__(self, *args, **kwargs):
320
+
self.base_fields["update_auth"] =forms.BooleanField("I am authorized to update this IPR disclosure, and I understand that notification of this update will be provided to the submitter of the original IPR disclosure and to the Patent Holder's Contact.")
321
+
super(UpdateForm, self).__init__(*args, **kwargs)
322
+
ifrequest.method=='POST':
323
+
form=UpdateForm(request.POST)
324
+
else:
325
+
form=UpdateForm()
326
+
327
+
ifnot(form.is_valid()):
328
+
forerrorinform.errors:
329
+
log("Form error for field: %s: %s"%(error, form.errors[error]))
<b>I am authorized to update this IPR disclosure, and I understand that notification of this update will be provided to the submitter of the original IPR disclosure and to the Patent Holder's Contact.</b>
0 commit comments