Django

Code

Changeset 1577

Show
Ignore:
Timestamp:
12/08/05 20:32:59 (3 years ago)
Author:
adrian
Message:

Fixed #1006 -- Fixed error when using ChangeManipulator? in a model with raw_id_admin on ForeignKey?. Thanks, Gustavo Picon

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r1526 r1577  
    4949    Baishampayan Ghose 
    5050    Espen Grindhaug <http://grindhaug.org/> 
     51    Gustavo Picon 
    5152    Brant Harris 
    5253    Ian Holsman <http://feh.holsman.net/> 
  • django/trunk/django/core/formfields.py

    r1485 r1577  
    326326class TextField(FormField): 
    327327    input_type = "text" 
    328     def __init__(self, field_name, length=30, maxlength=None, is_required=False, validator_list=[]): 
     328    def __init__(self, field_name, length=30, maxlength=None, is_required=False, validator_list=[], member_name=None): 
    329329        self.field_name = field_name 
    330330        self.length, self.maxlength = length, maxlength 
    331331        self.is_required = is_required 
    332332        self.validator_list = [self.isValidLength, self.hasNoNewlines] + validator_list 
     333        if member_name != None: 
     334            self.member_name = member_name 
    333335 
    334336    def isValidLength(self, data, form):