Skip to content

Commit

Permalink
Remove unused parts
Browse files Browse the repository at this point in the history
  • Loading branch information
KaratasFurkan committed Feb 24, 2021
1 parent 2baa8c7 commit f5c001d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drf_extra_fields/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
import binascii
import imghdr
import io
import logging
import uuid

from django.core.exceptions import ValidationError
from django.core.files.uploadedfile import SimpleUploadedFile
from django.contrib.postgres import fields as postgres_fields
from django.utils.translation import gettext_lazy as _
from rest_framework.fields import (
DateField,
Expand All @@ -34,8 +32,6 @@
NumericRange = None


logger = logging.getLogger(__name__)

DEFAULT_CONTENT_TYPE = "application/octet-stream"


Expand Down Expand Up @@ -205,7 +201,8 @@ class RangeField(DictField):
def __init__(self, **kwargs):
if postgres_fields is None:
assert False, "'psgl2' is required to use {name}. Please install the 'psycopg2' library from 'pip'".format(
name=self.__class__.__name__)
name=self.__class__.__name__
)

self.child_attrs = kwargs.pop("child_attrs", {})
self.child = self.child_class(**self.default_child_attrs, **self.child_attrs)
Expand Down

0 comments on commit f5c001d

Please sign in to comment.