--- /dev/null
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.7 on 2016-08-24 12:54
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('organization-core', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='displayableimage',
+ name='type',
+ field=models.CharField(choices=[('logo', 'logo'), ('slider', 'slider'), ('card', 'card'), ('content', 'content')], max_length=64, verbose_name='type'),
+ ),
+ migrations.AlterField(
+ model_name='modelimage',
+ name='type',
+ field=models.CharField(choices=[('logo', 'logo'), ('slider', 'slider'), ('card', 'card'), ('content', 'content')], max_length=64, verbose_name='type'),
+ ),
+ ]
file = FileField(_("Image"), max_length=1024, format="Image", upload_to="images")
credits = models.CharField(_('credits'), max_length=256, blank=True, null=True)
- type = models.CharField(_('type'), max_length=64, choices=IMAGE_TYPE_CHOICES, blank=True)
+ type = models.CharField(_('type'), max_length=64, choices=IMAGE_TYPE_CHOICES)
class Meta:
abstract = True
--- /dev/null
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.7 on 2016-08-24 12:54
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('organization-magazine', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='articleimage',
+ name='type',
+ field=models.CharField(choices=[('logo', 'logo'), ('slider', 'slider'), ('card', 'card'), ('content', 'content')], max_length=64, verbose_name='type'),
+ ),
+ ]
--- /dev/null
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.7 on 2016-08-24 12:54
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('organization-pages', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='pageimage',
+ name='type',
+ field=models.CharField(choices=[('logo', 'logo'), ('slider', 'slider'), ('card', 'card'), ('content', 'content')], max_length=64, verbose_name='type'),
+ ),
+ ]
{% load mezzanine_tags %}
<a href="{{ object.get_absolute_url }}" title="{{ object.title }}" class="page-box">
<div class="page-box__image">
+
<img src="{{ MEDIA_URL }}{% thumbnail object.get_content_model.photo_card 900 400 %}" />
</div>
<div class="page-box__content">