Re: Is there any reason to set the default reverse relationship name in the current format?

2021-08-16 Thread 김정훈
; ForeignKey = partial(models.ForeignKey, related_name="%(class)ss") > > > class Author(models.Model): > ... > > > class Book(models.Model): > author = ForeignKey(Author, on_delete=models.CASCADE) > ... > > On Thu, 5 Aug 2021 at 1

Is there any reason to set the default reverse relationship name in the current format?

2021-08-05 Thread 김정훈
Hi, Django's default reverse relationship name is a model name followed by a _set suffix. In terms of readability, depending on the type of relationship used, I think it would be good to make the default reverse relationship name in the singular or plural form of the model name. Is there any