#8798: Add DEPhoneNumberField to German localflavor module
-------------------------------------------------+--------------------------
          Reporter:  jezdez                      |         Owner:  jezdez
            Status:  new                         |     Milestone:        
         Component:  django.contrib.localflavor  |       Version:  SVN   
        Resolution:                              |      Keywords:        
             Stage:  Unreviewed                  |     Has_patch:  1     
        Needs_docs:  0                           |   Needs_tests:  0     
Needs_better_patch:  0                           |  
-------------------------------------------------+--------------------------
Comment (by jezdez):

 Replying to [comment:4 mtredinnick]:

 Hrm, I see your point of overthinking validation of user input. And yes,
 if that user would be my grandma, she would wonder what the hell is meant
 by DIN5008. I could change the error message to a more polite message, if
 you want.

 But the other question is if validation is supposed to handle not only the
 "official" standards but any other potential phone numbers as well -- so
 why having such fields in the first place? I don't mean to start a
 standard flame war though, I just thought the more accurate the better
 when I wrote {{{DEPhoneNumberField}}}.

 The "informal" standard I was mentioning is widely used in Germany and
 Austria and is the only notation that does not come from strict German
 norm (yeah, there are such things).

 So for example: {{{ +49 30 12345-67 }}} is correct following DIN5008 while
 {{{ +49 (0)30 12345-67 }}} is incorrect, although everybody uses it. I
 just made that crazy regular expression tolerant to that deviation.

 But again, I won't stand in the way if you want to get rid of that
 monster, I'm not a fan of nitpicking :)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8798#comment:5>
Django Code <http://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to