Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
if not project:
raise Exception("meep")
super(PatchForm, self).__init__(instance = instance, *args, **kwargs)
if not project:
raise Exception("meep")
super(PatchForm, self).__init__(instance = instance, *args, **kwargs)
- self.fields['delegate'] = DelegateField(project)
+ self.fields['delegate'] = DelegateField(project, required = False)
class Meta:
model = Patch
class Meta:
model = Patch