Django

Code

Changeset 5499

Show
Ignore:
Timestamp:
06/20/07 01:11:28 (1 year ago)
Author:
jkocherhans
Message:

newforms-admin: Fixed #4629. Implemented raw_id_fields for inlines.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/newforms-admin/django/contrib/admin/options.py

    r5498 r5499  
    624624    ``ForeignKey`` to its parent. 
    625625    """ 
    626     def __init__(self, model, name=None, extra=3, fields=None, template=None): 
     626    def __init__(self, model, name=None, extra=3, fields=None, template=None, raw_id_fields=None): 
    627627        self.model = model 
    628628        self.opts = model._meta 
     
    634634        self.verbose_name_plural = model._meta.verbose_name_plural 
    635635        self.prepopulated_fields = {} 
     636        self.raw_id_fields = raw_id_fields or () 
    636637 
    637638class StackedInline(InlineModelAdmin):