code: def save(self, **kwargs):
          
  
          if self.id:
              for f_photo in self.formatedphoto_set.all():
                  f_photo.delete()
  
          super(Format, self).save(**kwargs)
docs: Overrides models.Model.save.
  
          - Delete formatted photos if format save and not now created
            (because of possible changes)