#9349: CharField create a varchar column
---------------------------------------------------+------------------------
          Reporter:  aiev                          |         Owner:  nobody     
  
            Status:  closed                        |     Milestone:             
  
         Component:  Database layer (models, ORM)  |       Version:  SVN        
  
        Resolution:  wontfix                       |      Keywords:  char, 
varchar
             Stage:  Unreviewed                    |     Has_patch:  0          
  
        Needs_docs:  0                             |   Needs_tests:  0          
  
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by mtredinnick):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => wontfix
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 If you really need a `char` type at the database level, then you can write
 a custom model field that does that (it's documented how to write custom
 fields). This isn't needed in Django core, however, since the number of
 cases where you really need a fixed-length field right-padded with spaces
 is very minimal. The `varchar` type can handle all those cases (possible,
 again, with a custom model field if you really want the right-padding).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9349#comment:1>
Django <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 django-updates@googlegroups.com
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