Skip to content

Add extra to ignore extra fields, fix around handling None and nullable

Compare
Choose a tag to compare
@collerek collerek released this 26 Sep 12:27
· 700 commits to master since this release
fc06759

0.10.20

✨ Features

  • Add extra parameter in Model.Meta that accepts Extra.ignore and Extra.forbid (default) and either ignores the extra fields passed to ormar model or raises an exception if one is encountered #358

🐛 Fixes

  • Allow None if field is nullable and have choices set #354
  • Always set primary_key to not null regardless of autoincrement and explicit nullable setting to avoid problems with migrations #348