- Timestamp:
- Dec 4, 2008, 10:22:00 AM (16 years ago)
- Location:
- branches/exodus-roland/exodus
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/exodus-roland/exodus/admin.py
r6403 r6404 4 4 from exodus.models import * 5 5 from exodus.forms import NodeForm 6 from exodus.contrib import ReadOnlyAdminFields 6 7 7 8 class InterfaceInline(admin.TabularInline): … … 15 16 ) 16 17 17 18 class NodeAdmin(admin.ModelAdmin): 18 class NodeAdmin(ReadOnlyAdminFields, admin.ModelAdmin): 19 readonly = ('masterip', ) 19 20 form = NodeForm 20 21 list_display = ('name', 'location','network')
Note:
See TracChangeset
for help on using the changeset viewer.