File: __init__.py

package info (click to toggle)
python-django-netfields 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 444 kB
  • sloc: python: 2,067; sh: 7; makefile: 4; sql: 2
file content (9 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
from django import VERSION

from netfields.managers import NetManager
from netfields.fields import (InetAddressField, CidrAddressField,
                              MACAddressField, MACAddress8Field)

# only keep it for django 3.1 and below
if VERSION[0] < 3 or VERSION[0] == 3 and VERSION[1]  < 2:
    default_app_config = 'netfields.apps.NetfieldsConfig'