Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
- simplify user-specific config JSON to only include permissions (see wq/wq#54)
- include related_name in form config for ForeignKeys
- detect SlugRelatedField when mapping _id columns
- remove wq.db.default_settings
- remove wq.db.patterns.identify
- remove remaining Mustache template support
- remove wq.db.rest.context_processors
- remove wq.db.rest.auth.context_processors
- remove url compatibility with include()
  • Loading branch information
sheppard committed Sep 8, 2022
1 parent 7556674 commit 02e889e
Show file tree
Hide file tree
Showing 61 changed files with 269 additions and 1,686 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
python -m pip install flake8 pytest wheel
python -m pip install django==${{ matrix.django-version }}
python -m pip install djangorestframework==${{ matrix.drf-version }}
python -m pip install django-mustache
python -m pip install pystache
python -m pip install .
- name: Lint with flake8
run: |
Expand Down
65 changes: 0 additions & 65 deletions default_settings.py

This file was deleted.

6 changes: 0 additions & 6 deletions patterns/base/serializers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from wq.db.rest.serializers import ModelSerializer
from rest_framework import serializers
from natural_keys import NaturalKeySerializer, NaturalKeyModelSerializer
from django.conf import settings


class AttachmentListSerializer(serializers.ListSerializer):
Expand All @@ -16,11 +15,6 @@ def to_representation(self, data):
if self.parent.instance and not self.parent.instance.pk:
data = self.default_attachments(initial)

if not getattr(settings, 'WQ_APP_TEMPLATE', None):
# FIXME: remove in 2.0
for i, row in enumerate(data):
row['@index'] = i

return data

def default_attachments(self, initial):
Expand Down
3 changes: 0 additions & 3 deletions patterns/identify/__init__.py

This file was deleted.

83 changes: 0 additions & 83 deletions patterns/identify/filters.py

This file was deleted.

Empty file.
Empty file.
14 changes: 0 additions & 14 deletions patterns/identify/management/commands/make_authorities.py

This file was deleted.

49 changes: 0 additions & 49 deletions patterns/identify/migrations/0001_initial.py

This file was deleted.

Empty file.
Loading

0 comments on commit 02e889e

Please sign in to comment.