diff --git a/README.md b/README.md index 2c81815..9946b06 100644 --- a/README.md +++ b/README.md @@ -268,12 +268,13 @@ await news.posts.clear() The following keyword arguments are supported on all field types. - * `primary_key` - * `nullable` - * `default` - * `server_default` - * `index` - * `unique` + * `primary_key: bool` + * `nullable: bool` + * `default: Any` + * `server_default: Any` + * `index: bool` + * `unique: bool` + * `choices: typing.Sequence` All fields are required unless one of the following is set: @@ -294,7 +295,9 @@ Available Model Fields: * `DateTime()` * `JSON()` * `BigInteger()` -* `Decimal(lenght, precision)` +* `Decimal(scale, precision)` +* `ForeignKey(to)` +* `Many2Many(to, through)` [sqlalchemy-core]: https://docs.sqlalchemy.org/en/latest/core/ [databases]: https://github.com/encode/databases diff --git a/ormar/models/metaclass.py b/ormar/models/metaclass.py index bf8c245..16d3b84 100644 --- a/ormar/models/metaclass.py +++ b/ormar/models/metaclass.py @@ -294,7 +294,6 @@ class ModelMetaclass(pydantic.main.ModelMetaclass): new_model = super().__new__( # type: ignore mcs, name, bases, attrs ) - # breakpoint() if hasattr(new_model, "Meta"): new_model = populate_meta_orm_model_fields(attrs, new_model)