File: apps.py

package info (click to toggle)
djangorestframework-filters 1.0.0.dev2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 420 kB
  • sloc: python: 2,855; makefile: 6
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)