File: apps.py

package info (click to toggle)
djangorestframework-filters 0.10.2.post0-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 268 kB
  • sloc: python: 1,714; makefile: 5
file content (13 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13

from django.apps import AppConfig
from django.db.models import CharField, TextField

from .lookups import Unaccent


class TestappConfig(AppConfig):
    name = 'tests.testapp'

    def ready(self):
        CharField.register_lookup(Unaccent)
        TextField.register_lookup(Unaccent)