Browse Source

Resolve a issue (#473)

+1
pull/480/head
eduardocalil 9 years ago
committed by Edward
parent
commit
683d7c6964
  1. 4
      base/templatetags/menus.py
  2. 16
      materia/migrations/0036_merge.py

4
base/templatetags/menus.py

@ -27,6 +27,10 @@ def subnav(context, path=None):
if root_pk:
request = context['request']
app = request.resolver_match.app_name
# Esse IF elimina o bug do subnav em Tabelas Auxiliares
# e também em proposições
if request.path.find(app) == -1:
return
default_path = '%s/subnav.yaml' % app
path = os.path.join(TEMPLATES_DIR, path or default_path)
if os.path.exists(path):

16
materia/migrations/0036_merge.py

@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-19 13:49
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('materia', '0032_auto_20160503_0926'),
('materia', '0035_auto_20160510_0949'),
]
operations = [
]
Loading…
Cancel
Save