--- /dev/null
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('festival', '0004_auto_20160229_1630'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='artist',
+ name='photo_alignment',
+ field=models.CharField(default=b'left', max_length=32, verbose_name='photo alignment', blank=True, choices=[(b'left', 'left'), (b'right', 'right')]),
+ ),
+ ]
bio = RichTextField(_('biography'), blank=True)
photo = FileField(_('photo'), upload_to='images/photos', max_length=1024, blank=True, format="Image")
photo_credits = models.CharField(_('photo credits'), max_length=255, blank=True, null=True)
- photo_alignment = models.CharField(_('photo alignment'), choices=ALIGNMENT_CHOICES, max_length=32, default="left")
+ photo_alignment = models.CharField(_('photo alignment'), choices=ALIGNMENT_CHOICES, max_length=32, default="left", blank=True)
photo_description = models.TextField(_('photo description'), blank=True)
featured = models.BooleanField(_('featured'), default=False)
photo_featured = FileField(_('photo featured'), upload_to='images/photos', max_length=1024, blank=True, format="Image")
<div class="artist-bio">
{{ artist.bio|safe }}
+ <img src="{{ MEDIA_URL }}/{{ artist.photo }}" />
</div>
-<img src="{{ MEDIA_URL }}/{{ artist.photo }}" />
-
<div class="artist-events">
<h2>{% trans 'Events' %}</h2>
{% for event in artist.events.all %}