From 6f5515cdc734e32d81c40d7c543e6dd0631023d8 Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Thu, 29 Aug 2019 14:01:43 +0200
Subject: [PATCH] Add cropping to photo field of person. Advances #56.

---
 biscuit/core/models.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/biscuit/core/models.py b/biscuit/core/models.py
index a1991a538..ef82a496f 100644
--- a/biscuit/core/models.py
+++ b/biscuit/core/models.py
@@ -69,6 +69,7 @@ class Person(SchoolRelated):
         'Sex'), max_length=1, choices=SEX_CHOICES, blank=True)
 
     photo = models.ImageField(verbose_name=_('Photo'), blank=True, null=True)
+    photo_cropping = ImageRatioField('photo', '600x800', size_warning=True)
 
     import_ref = models.CharField(verbose_name=_(
         'Reference ID of import source'), max_length=64, blank=True, null=True, editable=False)
-- 
GitLab