def allow_blank(self, form, name):
if self.blank is not None:<EOL><INDENT>return self.blank<EOL><DEDENT>model = form._meta.model<EOL>field = model._meta.get_field(self.get_field_name(form, name))<EOL>return field.blank<EOL>
Allow blank determines if the form might be completely empty. If it's
empty it will result in a None as the saved value for the ForeignKey.