from django.db import models


class NonAsciiRepr:
    def __repr__(self):
        return "nôt åscíì"


class Binary(models.Model):
    field = models.BinaryField()


try:
    from django.db.models import JSONField
except ImportError:  # Django<3.1
    try:
        from django.contrib.postgres.fields import JSONField
    except ImportError:  # psycopg2 not installed
        JSONField = None


if JSONField:
    class PostgresJSON(models.Model):
        field = JSONField()

from django.db import models


class NonAsciiRepr:
    def __repr__(self):
        return "nôt åscíì"


class Binary(models.Model):
    field = models.BinaryField()


try:
    from django.db.models import JSONField
except ImportError:  # Django<3.1
    try:
        from django.contrib.postgres.fields import JSONField
    except ImportError:  # psycopg2 not installed
        JSONField = None


if JSONField:

    class PostgresJSON(models.Model):
        field = JSONField()

Fix one coding style problem
Fix one coding style problem
