BSD Ports

www/py-django-countries 9.0.0 NetBSD

Provides a country field for Django models

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
83f4e5b785
License
mit
Categories
www, python
Package size
510.9 KiB, 2966.9 KiB installed

Description

A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.

In the other systems

SystemPortVersion
NetBSDwww/py-django-countries9.0.0
FreeBSDwww/py-django-countries5.3_1
DragonFlywww/py-django-countries5.3_1
HardenedBSDwww/py-django-countries5.3_1
GhostBSDwww/py-django-countries5.3_1

Install

Binary package:

pkgin install py311-django-countries

From pkgsrc:

cd /usr/pkgsrc/www/py-django-countries && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_649.0.0
NetBSD 10.1 aarch648.2.0
SmartOS / illumos x86_649.0.0
macOS 15 arm649.0.0

Dependencies

Run dependencies 4

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
py312-django-countries-9.0.0, py313-django-countries-9.0.0, py314-django-countries-9.0.0

Commit history 1

DateCommitCreditsLog message
83f4e5b785 adam py-django-countries: updated to 9.0.0
9.0.0 (10 June 2026) Features - Nullable `CountryField` (with `null=True`) now returns `None` instead of `Country(code=None)` when the database value is NULL. This makes the nullability explicit at the field level rather than inside the `Country` object, resulting in cleaner typing where `Country.code` is always a `str` (never `None`). **Breaking change:** Code that previously checked `obj.country.code is None` should now check `obj.country is None`. The common pattern `if obj.country:` continues to work unchanged. - Add Django 6.0 and Python 3.14 support. Drop Django 3.2, 5.0, 5.1 and Python 3.8, 3.9. Minimum DRF bumped to 3.14. - Add an opt-in `Countries.sorted(locale=...)` helper to return country choices sorted by translated display names. Bugfixes …