Skip to content

Commit

Permalink
Merge pull request #113 from labhackercd/develop
Browse files Browse the repository at this point in the history
v2.1.0
  • Loading branch information
erivanio authored Jul 9, 2018
2 parents 79118ce + 6bebe09 commit c5453a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions wikilegis/api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ class Meta:
reference__bill__status='draft'
).exclude(reference__bill__is_visible=False)
allowed_methods = ['get']
excludes = ['modified']
filtering = {
'author': ALL_WITH_RELATIONS,
'reference': ALL_WITH_RELATIONS,
'id': ALL,
'created': ['exact', 'lt', 'lte', 'gte', 'gt'],
'modified': ['exact', 'lt', 'lte', 'gte', 'gt'],
}


Expand All @@ -159,11 +160,12 @@ class Meta:
replaced__bill__status='draft'
).exclude(replaced__bill__is_visible=False)
allowed_methods = ['get']
excludes = ['modified']
filtering = {
'author': ALL_WITH_RELATIONS,
'replaced': ALL_WITH_RELATIONS,
'id': ALL,
'created': ['exact', 'lt', 'lte', 'gte', 'gt'],
'modified': ['exact', 'lt', 'lte', 'gte', 'gt'],
}


Expand All @@ -180,11 +182,12 @@ class Meta:
supressed__bill__status='draft'
).exclude(supressed__bill__is_visible=False)
allowed_methods = ['get']
excludes = ['modified']
filtering = {
'author': ALL_WITH_RELATIONS,
'supressed': ALL_WITH_RELATIONS,
'id': ALL,
'created': ['exact', 'lt', 'lte', 'gte', 'gt'],
'modified': ['exact', 'lt', 'lte', 'gte', 'gt'],
}


Expand All @@ -209,6 +212,8 @@ class Meta:
'author': ALL_WITH_RELATIONS,
'vote': ALL,
'id': ALL,
'created': ['exact', 'lt', 'lte', 'gte', 'gt'],
'modified': ['exact', 'lt', 'lte', 'gte', 'gt'],
}


Expand All @@ -225,4 +230,6 @@ class Meta:
filtering = {
'author': ALL_WITH_RELATIONS,
'id': ALL,
'created': ['exact', 'lt', 'lte', 'gte', 'gt'],
'modified': ['exact', 'lt', 'lte', 'gte', 'gt'],
}
2 changes: 1 addition & 1 deletion wikilegis/core/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from django.conf import settings
import importlib
import pip
from pip import _internal as pip


PLUGINS_CONFIG_FILE = settings.BASE_DIR + '/.plugins'
Expand Down
Binary file added wikilegis/public/media/brasao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c5453a5

Please sign in to comment.