Skip to content

4.2.1

Compare
Choose a tag to compare
@intgr intgr released this 02 Jun 14:16
· 486 commits to master since this release
21e541f

Headline changes

Django 4.2 additions

Other stubs additions

  • Added set/get typing for spatial Model fields by @martinlehoux in #1487
  • Made django.conf constants Literals by @sobolevn in #1470
  • Added TypedModelMeta for typing Model inner Meta class. This feature was deferred from the previous version due to a bug. by @intgr in #1375, #1456
    • Fixed missing __init__.py in django_stubs_ext.db by @monosans in #1460

Stubs fixes

  • Fixed return types of many decorators (cache_page, cache_control, sensitive_variables, sensitive_post_parameters, condition, etag, last_modified) by @Kostia-K in #1465
  • Fixed ManyToManyRawIdWidget to accept ManyToManyRel argument by @RyanWalker277 in #1447
  • Fixed classonlymethod decorator declaration by @adamchainz in #1494
  • Fixed type of field attribute descriptors on Model classes (not instance) by @intgr in #1491
  • Added missing argument default to admin.sites.get_app_list() by @AkaZecik in #1497
  • Updated name of lookup_needs_distinct() function by @AkaZecik in #1498
  • Fixed _make_token_with_timestamp() argument secret type by @christianbundy in #1462
  • Fixed send_mass_email() argument type to allow None by @dlesbre in #1516
  • Made UserCreationForm generic by @monosans in #1518
  • Added SessionBase methods, improved SessionStore.get_model_class() return type by @realsuayip in #1517

Other fixes

Housekeeping

New Contributors

Full Changelog: 4.2.0...4.2.1