Skip to content

Latest commit

 

History

History
103 lines (64 loc) · 3.91 KB

CHANGELOG.md

File metadata and controls

103 lines (64 loc) · 3.91 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project attempts to adhere to Semantic Versioning.

Added

  • Added a WithHistory abstract model for integrating django-simple-history HistoricalRecords.
  • Added custom createsuperuser management command to allow for resetting an existing superuser's password in development when DEBUG=True.

Added

  • Added a CuidField and extra dependencies needed to use it. Install the package with django-twc-toolbox[cuid] in order to use it.

Removed

  • Dropped support for Django 3.2 (EOL April 2024).

Added

  • py.typed added to the project.

Changed

  • Now using v2024.27 of django-twc-package.

Added

  • Added the page_date_range argument to the DatePaginator, taking the place of the existing date_range argument. This change clarifies that it represents constraining the range of dates for each page, not the entire range of dates for the paginator.

Changed

  • Updated the DatePaginator class to use the page_date_range argument instead of the deprecated date_range argument.
  • DatePage.min_date, DatePage.max_date, and DatePage.date_range are now cached_property attributes instead of being set in the __init__ method.
  • Now using django-twc-package template for repository and package structure.

Deprecated

  • The date_range argument of the DatePaginator class is now deprecated. It will be removed in version 0.4.0.

Removed

  • Removed the orphans kwarg from DatePaginator, which is inherited from Django's built-in Paginator. Given its date range-based pagination, the concept of orphans, applicable to item count per page, is not super useful. If it is passed in, a warning will be issued.

Fixed

  • DatePage.min_date and DatePage.max_date now return the correct dates for the page. DatePage.min_date returns the oldest date and DatePage.max_date returns the newest date.
  • DatePage.date_range now returns the correct range of dates for the page.

Added

  • DatePaginator and DatePage classes, extending Django's built-in Paginator and Page classes, respectively. These new classes enable pagination based on a specified date field, making it easier to work with date-based data. Useful for applications that require handling of time-series data or chronological records, such as a blog or an event archive.

Initial release!

Added

  • Initial documentation.
  • Initial tests.
  • Initial CI/CD (GitHub Actions).
  • A TimeStamped abstract model for adding created_at and updated_at fields to models.

New Contributors