|
|
|
@ -222,16 +222,16 @@ class UserProfile(models.Model): |
|
|
|
|
|
|
|
|
|
|
|
super(UserProfile, self).save(*args, **kwargs) |
|
|
|
super(UserProfile, self).save(*args, **kwargs) |
|
|
|
|
|
|
|
|
|
|
|
if self.boss_sign: |
|
|
|
if self.boss_sign and os.path.exists(self.boss_sign.path): |
|
|
|
process_img(self.boss_sign, size=BOSS_SIGN_IMG_SIZE) |
|
|
|
process_img(self.boss_sign, size=BOSS_SIGN_IMG_SIZE) |
|
|
|
|
|
|
|
|
|
|
|
if self.glavbuh_sign: |
|
|
|
if self.glavbuh_sign and os.path.exists(self.glavbuh_sign.path): |
|
|
|
process_img(self.glavbuh_sign, size=GLAVBUH_SIGN_IMG_SIZE) |
|
|
|
process_img(self.glavbuh_sign, size=GLAVBUH_SIGN_IMG_SIZE) |
|
|
|
|
|
|
|
|
|
|
|
if self.stamp: |
|
|
|
if self.stamp and os.path.exists(self.stamp.path): |
|
|
|
process_img(self.stamp, size=STAMP_IMG_SIZE) |
|
|
|
process_img(self.stamp, size=STAMP_IMG_SIZE) |
|
|
|
|
|
|
|
|
|
|
|
if self.logo: |
|
|
|
if self.logo and os.path.exists(self.logo.path): |
|
|
|
process_img(self.logo, size=LOGO_SIZE) |
|
|
|
process_img(self.logo, size=LOGO_SIZE) |
|
|
|
|
|
|
|
|
|
|
|
def is_ip(self): |
|
|
|
def is_ip(self): |
|
|
|
|