Browse Source

[FIX] base_multi_image - Fix method name

12.0-mig-module_prototyper_last
sebalix 9 years ago
committed by Vladislav Shepilov
parent
commit
dc8b509bb3
  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