Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localflavor Sri Lanka: Support for Sri Lanka added in django-localflavor #493

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

skdishansachin
Copy link

@skdishansachin skdishansachin commented Jul 28, 2023

**Support for Sri Lanka Added as requested by this issue #491 **

What Fields are added ?

  • Field for provinces of Sri Lanka.
  • Field for districts of Sri Lanka.
  • Field for Postal Code of Sri Lanka.

All Changes

  • Add an entry to the docs/changelog.rst describing the change.

  • Add an entry for your name in the docs/authors.rst file if it's not
    already there.

New Fields Only

  • Prefix the country code to all fields.

  • Field names should be easily understood by developers from the target
    localflavor country. This means that English translations are usually
    not the best name unless it's for something standard like postal code,
    tax / VAT ID etc.

  • Prefer 'PostalCodeField' for postal codes as it's
    international English; ZipCode is a term specific to the United
    States postal system.

  • Add meaningful tests. 100% test coverage is not required but all
    validation edge cases should be covered.

  • Add .. versionadded:: <next-version> comment markers to new
    localflavors.

  • Add documentation for all fields.

@skdishansachin skdishansachin marked this pull request as ready for review July 28, 2023 04:53
@@ -27,6 +27,8 @@ Other changes:

New flavors:

- Sri Lanka LocalFlavor: Support for Sri Lanka added
(`gh-493 <https://github.com/django/django-localflavor/pull/493>`_).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not add any entry in notes of an already-released version. Please move that note above in the unreleased section.

For the rest, it looks rather good, and I hope @benkonrath will have the opportunity to make a detailed review during the next weeks. Thanks!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I will make that change. I wasn't aware of it before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants