Changes between Initial Version and Version 2 of Ticket #5144


Ignore:
Timestamp:
Aug 12, 2007, 8:19:28 PM (17 years ago)
Author:
Malcolm Tredinnick
Comment:

Chris, revision 5878 is the current subversion code.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5144

    • Property Status newreopened
  • Ticket #5144 – Description

    initial v2  
    11I'm using revision 5878 to start a new project.  I have this in my model:
     2{{{
     3#!python
    24    first_name=models.CharField(max_length=100)
    35    last_name=models.CharField(max_length=50)
    4  
     6}}}
    57And I have django.contrib.admin enabled.  When I use the Admin App to add a new object of that class, I get the following error::
    6 
     8{{{
    79Traceback (most recent call last):
    810File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response
     
    2325  TypeError at /admin/members/people/add/
    2426  __init__() got an unexpected keyword argument 'max_length'
    25 
     27}}}
    2628If I comment out lines 46-67 in django/utils/maxlength.py and change my CharFields records to "maxlength" I can add a object but not view it.  But changing that file seems wrong.
Back to Top