Merge branch 'master' of http://code.brln.tv/diffusion/ARCH/archilance into mukhtar
commit
045d509a22
26 changed files with 453 additions and 137 deletions
@ -1,17 +1,29 @@ |
|||||||
|
from django.contrib.contenttypes.models import ContentType |
||||||
from rest_framework_filters import FilterSet, AllLookupsFilter, RelatedFilter |
from rest_framework_filters import FilterSet, AllLookupsFilter, RelatedFilter |
||||||
|
|
||||||
from .models import Location |
from .models import Location |
||||||
|
|
||||||
|
|
||||||
class LocationFilterSet(FilterSet): |
class LocationFilterSet(FilterSet): |
||||||
children = RelatedFilter('common.filters.LocationFilterSet') |
|
||||||
id = AllLookupsFilter() |
id = AllLookupsFilter() |
||||||
level = AllLookupsFilter() |
level = AllLookupsFilter() |
||||||
lft = AllLookupsFilter() |
lft = AllLookupsFilter() |
||||||
name = AllLookupsFilter() |
name = AllLookupsFilter() |
||||||
parent = RelatedFilter('common.filters.LocationFilterSet') |
|
||||||
rght = AllLookupsFilter() |
rght = AllLookupsFilter() |
||||||
tree_id = AllLookupsFilter() |
tree_id = AllLookupsFilter() |
||||||
type = AllLookupsFilter() |
type = AllLookupsFilter() |
||||||
|
|
||||||
|
children = RelatedFilter('common.filters.LocationFilterSet') |
||||||
|
parent = RelatedFilter('common.filters.LocationFilterSet') |
||||||
|
|
||||||
class Meta: |
class Meta: |
||||||
model = Location |
model = Location |
||||||
|
|
||||||
|
|
||||||
|
class ContentTypeFilterSet(FilterSet): |
||||||
|
app_label = AllLookupsFilter() |
||||||
|
id = AllLookupsFilter() |
||||||
|
model = AllLookupsFilter() |
||||||
|
|
||||||
|
class Meta: |
||||||
|
model = ContentType |
||||||
|
|||||||
@ -0,0 +1,16 @@ |
|||||||
|
# -*- coding: utf-8 -*- |
||||||
|
# Generated by Django 1.9.7 on 2016-09-14 13:00 |
||||||
|
from __future__ import unicode_literals |
||||||
|
|
||||||
|
from django.db import migrations |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('projects', '0030_auto_20160912_1912'), |
||||||
|
('projects', '0030_auto_20160912_1305'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
] |
||||||
@ -0,0 +1,16 @@ |
|||||||
|
# -*- coding: utf-8 -*- |
||||||
|
# Generated by Django 1.9.7 on 2016-09-14 13:00 |
||||||
|
from __future__ import unicode_literals |
||||||
|
|
||||||
|
from django.db import migrations |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('work_sell', '0013_auto_20160912_1305'), |
||||||
|
('work_sell', '0013_auto_20160912_1912'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
] |
||||||
Loading…
Reference in new issue