Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

RecursionError: maximum recursion depth exceeded in comparison #9

Open
@ramax495

Description

@ramax495

Hello!
I use model from the example of ArrayManyToManyField:

class Publication(models.Model):
    title = models.CharField(max_length=30)

    def __str__(self):
        return self.title

    class Meta:
        ordering = ('title',)

class Article(models.Model):
    headline = models.CharField(max_length=100)
    publications = ArrayManyToManyField(Publication, name='publications')
 
    def __str__(self):
        return self.headline

    class Meta:
        ordering = ('headline',)

And after I start command makemigrations I get error:
RecursionError: maximum recursion depth exceeded in comparison

Could you help ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions