Changes between Initial Version and Version 2 of Ticket #5144
- Timestamp:
- Aug 12, 2007, 8:19:28 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5144
- Property Status new → reopened
-
Ticket #5144 – Description
initial v2 1 1 I'm using revision 5878 to start a new project. I have this in my model: 2 {{{ 3 #!python 2 4 first_name=models.CharField(max_length=100) 3 5 last_name=models.CharField(max_length=50) 4 6 }}} 5 7 And 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 {{{ 7 9 Traceback (most recent call last): 8 10 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response … … 23 25 TypeError at /admin/members/people/add/ 24 26 __init__() got an unexpected keyword argument 'max_length' 25 27 }}} 26 28 If 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.