#17544: PL localflavor field PLNIPfield allows improper values -------------------------------------+-------------------- Reporter: jbl1 | Owner: nobody Type: Bug | Status: new Component: contrib.localflavor | Version: SVN Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------- One such value is "1112025170":
{{{ >>> from django.contrib.localflavor.pl import forms >>> form = forms.PLNIPField() >>> bool(form.has_valid_checksum("1112025170")) True }}} whereas it is not a valid NIP (tax id number) as the checksum for it is equal 10. All such numbers are not valid formally. Attaching the simplest possible patch. -- Ticket URL: <https://code.djangoproject.com/ticket/17544> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.