]> git.parisson.com Git - mezzo.git/commitdiff
[Linked orga logo] : version 2 with auto completion on orga + list orga
authorEmilie <zawadzki@ircam.fr>
Thu, 8 Dec 2016 12:05:44 +0000 (13:05 +0100)
committerEmilie <zawadzki@ircam.fr>
Thu, 8 Dec 2016 12:05:44 +0000 (13:05 +0100)
21 files changed:
app/local_settings.py
app/organization/core/context_processors.py
app/organization/network/admin.py
app/organization/network/forms.py
app/organization/network/migrations/0065_auto_20161208_1244.py [new file with mode: 0644]
app/organization/network/models.py
app/organization/network/translation.py
app/organization/network/urls.py
app/organization/network/views.py
app/static/src/sass/modules/_linked-organizations.scss
app/templates/core/inc/linked_organization_content.html [deleted file]
app/templates/core/inc/linked_organization_footer.html [deleted file]
app/templates/includes/footer.html
app/templates/pages/custompage.html
app/templates/pages/departmentpage.html
app/templates/pages/page/includes/linked_organization_content.html [new file with mode: 0644]
app/templates/pages/page/includes/linked_organization_footer.html [new file with mode: 0644]
app/templates/pages/page/includes/linked_organization_footer_2.html [new file with mode: 0644]
app/templates/pages/projecttopicpage.html
app/templates/pages/teampage.html
app/templates/projects/project_detail.html

index 0fe59bd76c9437f211cb3bce50b6284338197bd2..4e71f23886cc396de381e73a30e16a9df201d398 100644 (file)
@@ -103,6 +103,7 @@ ADMIN_MENU_ORDER = (
     (_('Magazine'), ('organization-magazine.Article',
                     'organization-magazine.Brief',)),
     (_('Network'), ('organization-network.Organization',
+                    'organization-network.OrganizationLinked',
                     'organization-network.Department',
                     'organization-network.Team',
                     'organization-network.Person',
index be0e0ebc8c6f1d4cf4f497eda2642097f136e8b0..6eeda035f6d2128df343488849a303145e088464 100644 (file)
@@ -1,7 +1,7 @@
 from django.conf import settings # import the settings file
 from datetime import datetime, date
 from organization.pages.models import Page
-from organization.network.models import Organization
+from organization.network.models import Organization, OrganizationLinkedInline
 
 def settings(request):
     date_now = datetime.now()
@@ -15,10 +15,20 @@ def settings(request):
     if newsletter_page:
         newsletter_subscribing_url = newsletter_page.first().get_absolute_url()
 
-    # HOST ORGANIZATION
+    # HOST ORGANIZATIONS
     host_org = Organization.objects.get(is_host=True)
-    linked_org_content = host_org.organizations_content.filter(organizations_content__id=host_org.id).order_by('order')
-    linked_org_footer = host_org.organizations_footer.filter(organizations_footer__id=host_org.id).order_by('order')
+    organization_lists = []
+
+    for orga_linked_block in host_org.organization_linked_block.all():
+        organizations = []
+        for orga_list in OrganizationLinkedInline.objects.filter(organization_list_id=orga_linked_block.organization_linked_id):
+            organizations.append(orga_list.organization)
+        organization_lists.append(organizations)
+
+    linked_org_content = organization_lists[0] if len(organization_lists) > 0 else None
+    linked_org_footer = organization_lists[1] if len(organization_lists) > 1 else None
+    linked_org_footer_2 = organization_lists[2] if len(organization_lists) > 2 else None
+
     research_slug = "recherche"
 
     return {'current_season': current_season,
@@ -27,5 +37,6 @@ def settings(request):
             'host_organization': host_org,
             'linked_organization_content' : linked_org_content,
             'linked_organization_footer' : linked_org_footer,
+            'linked_organization_footer_2' : linked_org_footer_2,
             'research_slug' : research_slug
             }
index caa0bc7e0408a039853ed0aebc09e095978d74d3..dd6770b1a497ce218895ba39cc4eee2ac51d9519 100644 (file)
@@ -13,6 +13,29 @@ from organization.pages.admin import PageImageInline, PageBlockInline, PagePlayl
 from organization.shop.models import PageProductList
 
 
+class OrganizationAdminInline(StackedDynamicInlineAdmin):
+
+    model = OrganizationLinkedInline
+    form = OrganizationLinkedForm
+
+
+class OrganizationLinkedAdmin(BaseTranslationOrderedModelAdmin):
+
+    inlines = (OrganizationAdminInline,)
+    first_fields = ['name',]
+
+    class Media:
+        js = (
+            static("mezzanine/js/admin/dynamic_inline.js"),
+        )
+
+
+class OrganizationLinkedBlockInlineAdmin(StackedDynamicInlineAdmin):
+
+    model = OrganizationLinkedBlockInline
+    form = OrganizationLinkedListForm
+
+
 class OrganizationPlaylistInline(TabularDynamicInlineAdmin):
 
     model = OrganizationPlaylist
@@ -33,17 +56,20 @@ class OrganizationBlockInline(StackedDynamicInlineAdmin):
     model = OrganizationBlock
 
 
-class OrganizationAdmin(BaseTranslationModelAdmin):
+class OrganizationAdmin(BaseTranslationOrderedModelAdmin):
 
     model = Organization
     inlines = [ OrganizationPlaylistInline,
                 OrganizationImageInline,
                 OrganizationBlockInline,
-                OrganizationLinkInline ]
-    filter_horizontal = ['organizations_content', 'organizations_footer']
+                OrganizationLinkInline,
+                OrganizationLinkedBlockInlineAdmin
+                 ]
     list_display = ['name', 'type', 'admin_thumb']
     list_filter = ['is_on_map',]
     search_fields = ['name',]
+    first_fields = ['name',]
+
 
 
 class PageProductListInline(TabularDynamicInlineAdmin):
@@ -206,6 +232,7 @@ class TrainingTopicAdmin(BaseTranslationModelAdmin):
     model = TrainingTopic
 
 
+admin.site.register(OrganizationLinked, OrganizationLinkedAdmin)
 admin.site.register(Organization, OrganizationAdmin)
 admin.site.register(OrganizationType)
 admin.site.register(Department, DepartmentAdmin)
index cb860c74b30e7c781f9ff5d19840086a0e30d285..e87749776a838b109eeedbdf33d59fc5bf350876 100644 (file)
@@ -5,7 +5,14 @@ from django import forms
 from django.forms.widgets import HiddenInput
 from django.forms import ModelForm
 from mezzanine.core.models import Orderable
-from organization.network.models import Person, PersonListBlock, PersonListBlockInline, PageCustomPersonListBlockInline
+from organization.network.models import (Person,
+                                PersonListBlock,
+                                PersonListBlockInline,
+                                PageCustomPersonListBlockInline,
+                                OrganizationLinked,
+                                OrganizationLinkedInline,
+                                OrganizationLinkedBlockInline,
+                                Organization)
 from organization.pages.models import Page, CustomPage
 
 
@@ -31,3 +38,27 @@ class PersonListBlockInlineForm(forms.ModelForm):
     class Meta:
         model = PersonListBlockInline
         fields = ('__all__')
+
+
+class OrganizationLinkedListForm(forms.ModelForm):
+
+    organization_linked = forms.ModelChoiceField(
+        queryset=OrganizationLinked.objects.all(),
+        widget=autocomplete.ModelSelect2(url='organization-linked-list-autocomplete')
+    )
+
+    class Meta:
+        model = OrganizationLinkedBlockInline
+        fields = ('organization_linked',)
+
+
+class OrganizationLinkedForm(forms.ModelForm):
+
+    organization = forms.ModelChoiceField(
+        queryset=Organization.objects.all(),
+        widget=autocomplete.ModelSelect2(url='organization-linked-autocomplete')
+    )
+
+    class Meta:
+        model = OrganizationLinkedInline
+        fields = ('organization',)
diff --git a/app/organization/network/migrations/0065_auto_20161208_1244.py b/app/organization/network/migrations/0065_auto_20161208_1244.py
new file mode 100644 (file)
index 0000000..27204f0
--- /dev/null
@@ -0,0 +1,85 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.11 on 2016-12-08 11:44
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+import mezzanine.core.fields
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('organization-network', '0064_auto_20161205_1536'),
+    ]
+
+    operations = [
+        migrations.CreateModel(
+            name='OrganizationLinked',
+            fields=[
+                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+                ('title', models.CharField(max_length=1024, verbose_name='title')),
+                ('description', models.TextField(blank=True, verbose_name='description')),
+            ],
+            options={
+                'verbose_name': 'Organization Linked',
+            },
+        ),
+        migrations.CreateModel(
+            name='OrganizationLinkedBlockInline',
+            fields=[
+                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+                ('_order', mezzanine.core.fields.OrderField(null=True, verbose_name='Order')),
+                ('title', models.CharField(max_length=1024, verbose_name='title')),
+                ('description', models.TextField(blank=True, verbose_name='description')),
+                ('organization_linked', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='organization_linked_block_inline_list', to='organization-network.OrganizationLinked', verbose_name='organization list')),
+            ],
+            options={
+                'ordering': ('_order',),
+            },
+        ),
+        migrations.CreateModel(
+            name='OrganizationLinkedInline',
+            fields=[
+                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+                ('_order', mezzanine.core.fields.OrderField(null=True, verbose_name='Order')),
+                ('title', models.CharField(max_length=1024, verbose_name='title')),
+                ('description', models.TextField(blank=True, verbose_name='description')),
+            ],
+            options={
+                'ordering': ('_order',),
+            },
+        ),
+        migrations.RemoveField(
+            model_name='organization',
+            name='order',
+        ),
+        migrations.RemoveField(
+            model_name='organization',
+            name='organizations_content',
+        ),
+        migrations.RemoveField(
+            model_name='organization',
+            name='organizations_footer',
+        ),
+        migrations.AddField(
+            model_name='organization',
+            name='_order',
+            field=mezzanine.core.fields.OrderField(null=True, verbose_name='Order'),
+        ),
+        migrations.AddField(
+            model_name='organizationlinkedinline',
+            name='organization',
+            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='organization_linked_inline_from', to='organization-network.Organization', verbose_name='organization'),
+        ),
+        migrations.AddField(
+            model_name='organizationlinkedinline',
+            name='organization_list',
+            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='organization_linked_inline_linked', to='organization-network.OrganizationLinked', verbose_name='organization linked'),
+        ),
+        migrations.AddField(
+            model_name='organizationlinkedblockinline',
+            name='organization_main',
+            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='organization_linked_block', to='organization-network.Organization', verbose_name='organization'),
+        ),
+    ]
index 6d9111f58719c8a7e053373bd27b80c3d8ab8113..6195aeb8a815849dc213d8cac2ec50544906441d 100644 (file)
@@ -60,7 +60,7 @@ PATTERN_CHOICES = [
 ALIGNMENT_CHOICES = (('left', _('left')), ('left', _('left')), ('right', _('right')))
 
 
-class Organization(Named, Address, URL, AdminThumbRelatedMixin):
+class Organization(Named, Address, URL, AdminThumbRelatedMixin, Orderable):
     """(Organization description)"""
 
     mappable_location = models.CharField(max_length=128, blank=True, null=True, help_text="This address will be used to calculate latitude and longitude. Leave blank and set Latitude and Longitude to specify the location yourself, or leave all three blank to auto-fill from the Location field.")
@@ -73,10 +73,6 @@ class Organization(Named, Address, URL, AdminThumbRelatedMixin):
     telephone = models.CharField(_('telephone'), max_length=64, blank=True, null=True)
     opening_times = models.TextField(_('opening times'), blank=True)
     subway_access = models.TextField(_('subway access'), blank=True)
-    organizations_content = models.ManyToManyField('self', verbose_name=_('Linked organizations (in content)'), related_name='organizations_content', blank=True, help_text="Usefull for host organization")
-    organizations_footer = models.ManyToManyField('self', verbose_name=_('Linked organizations (in footer)'), related_name='organizations_footer', blank=True, help_text="Usefull for host organization")
-    order = models.IntegerField(_('order number'), default=10)
-
     admin_thumb_type = 'logo'
 
     class Meta:
@@ -118,6 +114,26 @@ class Organization(Named, Address, URL, AdminThumbRelatedMixin):
         super(Organization, self).save()
 
 
+class OrganizationLinkedBlockInline(Titled, Orderable):
+    organization_linked = models.ForeignKey('OrganizationLinked', verbose_name=_('organization list'), related_name='organization_linked_block_inline_list', blank=True, null=True)
+    organization_main = models.ForeignKey('Organization', verbose_name=_('organization'), related_name='organization_linked_block', blank=True, null=True, on_delete=models.SET_NULL)
+
+
+class OrganizationLinked(Titled):
+
+    class Meta:
+        verbose_name = _('Organization Linked')
+
+    def __str__(self):
+        return self.title
+
+
+class OrganizationLinkedInline(Titled, Orderable):
+
+    organization_list = models.ForeignKey('OrganizationLinked', verbose_name=_('organization linked'), related_name='organization_linked_inline_linked', blank=True, null=True, on_delete=models.SET_NULL)
+    organization = models.ForeignKey('Organization', verbose_name=_('organization'), related_name='organization_linked_inline_from', blank=True, null=True, on_delete=models.SET_NULL)
+
+
 class OrganizationPlaylist(PlaylistRelated):
 
     organization = models.ForeignKey(Organization, verbose_name=_('organization'), related_name='playlists', blank=True, null=True, on_delete=models.SET_NULL)
index c1f038e5ccd174f8b567c2c486fae243c0f321fa..4f74b06ba52e3a494d3fdbd9d81bb56c257ac40c 100644 (file)
@@ -169,3 +169,21 @@ class TrainingLevelTranslationOptions(TranslationOptions):
 class TrainingSpecialityTranslationOptions(TranslationOptions):
 
     fields = ['name', 'description']
+
+
+@register(OrganizationLinked)
+class OrganizationLinkedTranslationOptions(TranslationOptions):
+
+    fields = []
+
+
+@register(OrganizationLinkedInline)
+class OrganizationLinkedInlineTranslationOptions(TranslationOptions):
+
+    fields = []
+
+
+@register(OrganizationLinkedBlockInline)
+class OrganizationLinkedBlockInlineTranslationOptions(TranslationOptions):
+
+    fields = []
index fcdf16603fac13f1593e5a8fa2e599b4b468639f..f40a93730f13f095816bddec510fa8e142d4c0ac 100644 (file)
@@ -14,4 +14,7 @@ urlpatterns = [
     url("^person-list-block-autocomplete/$", permission_required('person.can_edit')(PersonListBlockAutocompleteView.as_view()), name='person-list-block-autocomplete'),
     url("^person-autocomplete/$", permission_required('person.can_edit')(PersonListView.as_view()), name='person-autocomplete'),
     url("^network/$", OrganizationListView.as_view(), name='network'),
+    url("^organization-linked-list-autocomplete/$",  permission_required('organization.can_edit')(OrganizationLinkedListView.as_view()), name='organization-linked-list-autocomplete'),
+    url("^organization-linked-autocomplete/$",  permission_required('organization.can_edit')(OrganizationLinkedView.as_view()), name='organization-linked-autocomplete'),
+
     ]
index 819ac924cd59032f7b13ea1e2c8c011df47c0156..c5bdc3b98f53c28731de97d59a340928ec1a8d05 100644 (file)
@@ -70,3 +70,27 @@ class OrganizationListView(ListView):
         context = super(OrganizationListView, self).get_context_data(**kwargs)
         context['organization_types'] = self.get_queryset().values_list('type__name', 'type__css_class').order_by('type__name').distinct('type__name')
         return context
+
+
+class OrganizationLinkedListView(autocomplete.Select2QuerySetView):
+
+    def get_queryset(self):
+        qs = OrganizationLinked.objects.all()
+        orga_linked_title = self.forwarded.get('title', None)
+        if orga_linked_title:
+            qs = qs.filter(title=orga_linked_title)
+        if self.q:
+            qs = qs.filter(title__istartswith=self.q)
+        return qs
+
+
+class OrganizationLinkedView(autocomplete.Select2QuerySetView):
+
+    def get_queryset(self):
+        qs = Organization.objects.all()
+        orga_name= self.forwarded.get('name', None)
+        if orga_name:
+            qs = qs.filter(name=orga_name)
+        if self.q:
+            qs = qs.filter(name__istartswith=self.q)
+        return qs
index a412bec53fe1489183a041ad580f9c496c3dbbc0..78dda38d965f36407f9b63e20a84d127c2fd6ede 100644 (file)
@@ -10,8 +10,6 @@ $module: ".linked-organizations";
     &__item {
 
         display: inline-block;
-        width: 40px;
-        height: 40px;
         background-size: contain;
         background-position: center center;
         background-repeat: no-repeat;
@@ -19,8 +17,7 @@ $module: ".linked-organizations";
         @include margin(0 1 0 0);
 
         a {
-            width : 40px;
-            height : 40px;
+            display: inline-block;
         }
 
     }
diff --git a/app/templates/core/inc/linked_organization_content.html b/app/templates/core/inc/linked_organization_content.html
deleted file mode 100644 (file)
index dd4b613..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-{% load organization_tags %}
-<div class="row">
-    <div class="pull-right">
-        <ul class="linked-organizations">
-            {% for loc in linked_organization_content %}
-                {% with loc.images|get_type:"logo_black"|first as img %}
-                <li class="linked-organizations__item">
-                    <a href="{{ loc.url }}" title="{{ loc.title }}" target="_blank">
-                        <img src="{{ MEDIA_URL }}{{ img }}" title="{{ img.title }}" />
-                    </a>
-                </li>
-                {% endwith %}
-            {% endfor %}
-        </ul>
-    </div>
-</div>
diff --git a/app/templates/core/inc/linked_organization_footer.html b/app/templates/core/inc/linked_organization_footer.html
deleted file mode 100644 (file)
index 87e942e..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-{% load organization_tags %}
-{% for lof in linked_organization_footer %}
-    <a href="{{ lof.url }}" target="_blank" title="{{ lof.name }}">
-        {% with lof.images|get_type:"logo_white"|first as img %}
-            <img class="footer__partner" src="{{ MEDIA_URL }}{{ img }}" title="{{ img.title }}" width="120" height="66" />
-        {% endwith %}
-    </a>
-{% endfor %}
index 78a04161e0ab05d69ceb3e11d9dbf6ffb2a72923..b26391ca25f93f79a06b8a64816bf4f2ae1e6556 100644 (file)
                 <strong>{{ host_organization.description }}</strong><br/ >{% trans 'under the tutelage of' %} :<br />
                 <br />
                 {% if linked_organization_footer %}
-                    {% include 'core/inc/linked_organization_footer.html' %}
+                    {% include 'pages/page/includes/linked_organization_footer.html' %}
                 {% endif %}
             </div>
 
             <div class="col-xs-4 col-sm-2 col-sm-push-1 tal">
                 {% trans 'go to' %} :
-                <ul class="unstyled-list">
-                    <li>
-                        <a class="footer__link" href="https://www.centrepompidou.fr/" target="_blank" title="Centre Pompidou">Centre Pompidou</a>
-                    </li>
-                    <li>
-                        <a class="footer__link" href="http://www.bpi.fr/home.html" target="_blank" title="Bibliothèque Publique d’Information">Bibliothèque Publique d’Information</a>
-                    </li>
-                </ul>
+                {% if linked_organization_footer_2 %}
+                    {% include 'pages/page/includes/linked_organization_footer_2.html' %}
+                {% endif %}
             </div>
         </div>
 
index 6473a7e523cba90ced8cbe80129e6115de72aca4..b9cf1ab7f87fd43beeab4ddd0bd72a023e466a37 100644 (file)
@@ -24,7 +24,7 @@
 
         {% with page.get_ascendants|last as top_level_parent %}
             {% if linked_organization_content and research_slug == top_level_parent.slug %}
-                {% include 'core/inc/linked_organization_content.html' %}
+                {% include 'pages/page/includes/linked_organization_content.html' %}
             {% endif %}
         {% endwith %}
 
index c83813dd168d5103e4bf598f56a0e60573b92784..f396a9ff7ef3f883cd633c75218dd1ec45442804 100644 (file)
@@ -25,8 +25,9 @@
             </div>
         {% endeditable %}
     {% endif %}-->
+    {{ linked_organization_content.all }}
     {% if linked_organization_content and research_slug == page.departmentpage.slug %}
-        {% include 'core/inc/linked_organization_content.html' %}
+        {% include 'pages/page/includes/linked_organization_content.html' %}
     {% endif %}
 
     {% if page.departmentpage.content %}
diff --git a/app/templates/pages/page/includes/linked_organization_content.html b/app/templates/pages/page/includes/linked_organization_content.html
new file mode 100644 (file)
index 0000000..11a1835
--- /dev/null
@@ -0,0 +1,18 @@
+{% load organization_tags %}
+<div class="row">
+    <div class="pull-right">
+        <ul class="linked-organizations">
+            {% for loc in linked_organization_content %}
+                {% if loc.images.all %}
+                    {% with loc.images|get_type:"logo_black"|first as img %}
+                    <li class="linked-organizations__item">
+                        <a href="{{ loc.url }}" title="{{ loc.title }}" target="_blank">
+                            <img src="{{ MEDIA_URL }}{{ img }}" title="{{ img.title }}" />
+                        </a>
+                    </li>
+                    {% endwith %}
+                {% endif %}
+            {% endfor %}
+        </ul>
+    </div>
+</div>
diff --git a/app/templates/pages/page/includes/linked_organization_footer.html b/app/templates/pages/page/includes/linked_organization_footer.html
new file mode 100644 (file)
index 0000000..d93206b
--- /dev/null
@@ -0,0 +1,10 @@
+{% load organization_tags %}
+{% for lof in linked_organization_footer %}
+    {% if lof.images.all %}
+    <a href="{{ lof.url }}" target="_blank" title="{{ lof.name }}">
+        {% with lof.images|get_type:"logo_white"|first as img %}
+            <img class="footer__partner" src="{{ MEDIA_URL }}{{ img }}" title="{{ img.title }}" width="120" height="66" />
+        {% endwith %}
+    </a>
+    {% endif %}
+{% endfor %}
diff --git a/app/templates/pages/page/includes/linked_organization_footer_2.html b/app/templates/pages/page/includes/linked_organization_footer_2.html
new file mode 100644 (file)
index 0000000..83191dd
--- /dev/null
@@ -0,0 +1,8 @@
+{% load organization_tags %}
+<ul class="unstyled-list">
+    {% for lof in linked_organization_footer_2 %}
+        <li>
+            <a class="footer__link" href="{{ lof.url }}" target="_blank" title="{{ lof.name }}">{{ lof.name}} </a>
+        </li>
+    {% endfor %}
+</ul>
index e347dcbaaf02421feba35ee9165954b202e138e3..369c750adf585572133f539a5e0e75129ba19ad7 100644 (file)
@@ -36,7 +36,7 @@
 {% block page_content %}
     {% with page.get_ascendants|last as top_level_parent %}
         {% if linked_organization_content and research_slug == top_level_parent.slug %}
-            {% include 'core/inc/linked_organization_content.html' %}
+            {% include 'pages/page/includes/linked_organization_content.html' %}
         {% endif %}
     {% endwith %}
 
index 8a28ccb9057040c046a1b761e0c25b6609597ee1..fbd71ca8bdc222f5148e95d35394d95d6a61251f 100644 (file)
@@ -22,7 +22,7 @@
 {% block page_content %}
     {% with page.get_ascendants|last as top_level_parent %}
         {% if linked_organization_content and research_slug == top_level_parent.slug %}
-            {% include 'core/inc/linked_organization_content.html' %}
+            {% include 'pages/page/includes/linked_organization_content.html' %}
         {% endif %}
     {% endwith %}
     {% if page.teampage.sub_title %}
index 50f43bfb53c4272ce7c5f8206de54584810af174..e5e1dfa46650d6d79d08c4ffe81f2c6549569b16 100644 (file)
@@ -47,7 +47,7 @@
 
     {% with page.get_ascendants|last as top_level_parent %}
         {% if linked_organization_content and research_slug == top_level_parent.slug %}
-            {% include 'core/inc/linked_organization_content.html' %}
+            {% include 'pages/page/includes/linked_organization_content.html' %}
         {% endif %}
     {% endwith %}