Skip to content
Snippets Groups Projects
Verified Commit 6f5515cd authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add cropping to photo field of person. Advances #56.

parent f563d261
No related branches found
No related tags found
1 merge request!36Resolve "Scale and maybe crop uploaded pictures"
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment