Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1006 -- Fixed error when using ChangeManipulator in a model wi…

…th raw_id_admin on ForeignKey. Thanks, Gustavo Picon

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1577 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 99f0f414d5ff74aa24355ad4d4cff5a4110e51df 1 parent 661613e
Adrian Holovaty authored December 09, 2005
1  AUTHORS
@@ -48,6 +48,7 @@ answer newbie questions, and generally made Django that much better:
48 48
     Clint Ecker
49 49
     Baishampayan Ghose
50 50
     Espen Grindhaug <http://grindhaug.org/>
  51
+    Gustavo Picon
51 52
     Brant Harris
52 53
     Ian Holsman <http://feh.holsman.net/>
53 54
     Kieran Holland <http://www.kieranholland.com>
4  django/core/formfields.py
@@ -325,11 +325,13 @@ def get_id(self):
325 325
 
326 326
 class TextField(FormField):
327 327
     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):
329 329
         self.field_name = field_name
330 330
         self.length, self.maxlength = length, maxlength
331 331
         self.is_required = is_required
332 332
         self.validator_list = [self.isValidLength, self.hasNoNewlines] + validator_list
  333
+        if member_name != None:
  334
+            self.member_name = member_name
333 335
 
334 336
     def isValidLength(self, data, form):
335 337
         if data and self.maxlength and len(data.decode(DEFAULT_CHARSET)) > self.maxlength:

0 notes on commit 99f0f41

Please sign in to comment.
Something went wrong with that request. Please try again.