Pass ForeignKey kwargs to BaseField by booqoffsky · Pull Request #1239 · ormar-orm/ormar

I want to add a comment on the ForeignKey:

class MyModel(ormar.Model):
    model_two: MyAnotherModel = ForeignKey(
        MyAnotherModel,
        ...
        comment="my super comment",
    )

And this does not work due to the fact that the kwargs are not passed to the ForeignKeyField, however, according to the documentation, it should:

:param kwargs: all other args to be populated by BaseField

The proposed code fixes this problem. Could you take a look at it, please?