coderDude
coderDude

Reputation: 904

Djongo Using ArrayField throws Apps No Loaded Error on makemigrations

I am trying to create a django model using djongo which uses ArrayField


class SubModel(models.Model):
    i = models.IntegerField()

    class Meta:
        abstract = True

class BiggerModel(models.Model):

    subarr = models.ArrayField(model_container=SubModel)

When I run makemigrations, I get the error

AppRegistryNotReady("Models aren't loaded yet.")

This is happening only if I use ArrayField. Not with any other fields

I am using django 2.1.5 and djongo 1.3.2

Upvotes: 1

Views: 219

Answers (1)

Mawkee
Mawkee

Reputation: 56

It's a bug on Djongo 1.3.2. You can downgrade it to 1.3.1 or wait for a new release (until today, 23/Apr, there was a PR merged, but not a new release)

Upvotes: 2

Related Questions