Changeset 9b911db for asadb/groups


Ignore:
Timestamp:
Aug 9, 2011, 3:01:19 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
d8290de
Parents:
628e06c
git-author:
Alex Dehnert <adehnert@…> (08/09/11 03:01:19)
git-committer:
Alex Dehnert <adehnert@…> (08/09/11 03:01:19)
Message:

Make StaticWidget? work with Select fields too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/views.py

    r628e06c r9b911db  
    3535            restricted_fields.extend(self.exec_only_fields)
    3636        for field_name in restricted_fields:
     37            formfield = self.fields[field_name]
    3738            value = getattr(self.instance, field_name)
    38             formfield = self.fields[field_name]
    39             formfield.widget = StaticWidget(value=value)
     39            StaticWidget.replace_widget(formfield, value)
    4040
    4141    exec_only_fields = [
Note: See TracChangeset for help on using the changeset viewer.