Browse Source

[FIX] base_multi_image - Fix method name

pull/468/head
sebalix 8 years ago
parent
commit
2bddb2fc00
  1. 2
      base_multi_image/models/image.py

2
base_multi_image/models/image.py

@ -190,7 +190,7 @@ class Image(models.Model):
_('You must provide an attached file for the image.'))
@api.constrains('storage', 'attachment_id')
def _check_store(self):
def _check_attachment_id(self):
if self.storage == 'filestore' and not self.attachment_id:
raise exceptions.ValidationError(
_('You must provide an attachment for the image.'))
Loading…
Cancel
Save