Ticket #14362: patch.diff

File patch.diff, 818 bytes (added by Germano Gabbianelli, 14 years ago)
  • django/contrib/admin/widgets.py

    # HG changeset patch
    # User tyrion
    # Date 1285853901 -7200
    # Node ID f7cbf5eb3f8cd1b730efefa30b0f65f5ba7226a0
    # Parent  203bd55e900832f6b6ced8e7499eabe26e43d06b
    Removed the init method of ManyToManyRawIdWidget.
    
    diff -r 203bd55e9008 -r f7cbf5eb3f8c django/contrib/admin/widgets.py
    a b  
    163163    A Widget for displaying ManyToMany ids in the "raw_id" interface rather than
    164164    in a <select multiple> box.
    165165    """
    166     def __init__(self, rel, attrs=None, using=None):
    167         super(ManyToManyRawIdWidget, self).__init__(rel, attrs, using=None)
    168 
    169166    def render(self, name, value, attrs=None):
    170167        attrs['class'] = 'vManyToManyRawIdAdminField'
    171168        if value:
Back to Top