Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
related_name is Optional[str] (typeddjango#176)
In the current Django (2.1, 2.2), the `related_name` parameter to `OneToOneField` and `ForeignKey` classes (much like `ManyToManyField` and the base `ForeignObject` classes) is `Optional[str]`. While it's true that most authors won't pass `None` here, derived field types will want to be able to do so.
- Loading branch information