--- /dev/null
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.7 on 2016-09-21 13:02
+from __future__ import unicode_literals
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('organization-core', '0002_linktype_picto'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='linktype',
+ name='picto',
+ ),
+ ]
blank=True,
)
ordering = models.PositiveIntegerField(verbose_name=_('ordering'), null=True, blank=True)
- picto = FileField(_("picto"), max_length=1024, format="Image", upload_to="images/picto")
class Meta:
ordering = ['ordering', ]
{% if person.description %}
<p>{{ person.description|slice:":255" }}</p>
{% endif %}
- {% with person.links.all|get_type_link:'site internet' as web_site %}
- {% if web_site %}
- <a href="{{ web_site.first }}" title="Site Web">Site Web</a>
+ {% with person.links.first as link %}
+ {% if link %}
+ <a href="{{ link }}" title="Site Web"><span class="fa fa-{{ link.link_type.name }}">{{ link.link_type.name }}</span></a>
{% endif %}
{% endwith %}
{% endwith %}