image width/height must be >0
This commit is contained in:
parent
d30c2ba78e
commit
83d57b6197
2 changed files with 4 additions and 4 deletions
|
|
@ -114,10 +114,7 @@ class Annotation(models.Model):
|
|||
Annotation.objects.filter(id=self.id).update(public_id=self.public_id)
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if not self.id:
|
||||
set_public_id = True
|
||||
else:
|
||||
set_public_id = False
|
||||
set_public_id = not self.id
|
||||
|
||||
#no clip or update clip
|
||||
if not self.clip and not self.layer.private or \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue