Changeset 6404 for branches


Ignore:
Timestamp:
Dec 4, 2008, 10:22:00 AM (16 years ago)
Author:
roland
Message:

Trying to put some inteligence of save and clean_data in forms.

Location:
branches/exodus-roland/exodus
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/exodus-roland/exodus/admin.py

    r6403 r6404  
    44from exodus.models import *
    55from exodus.forms import NodeForm
     6from exodus.contrib import ReadOnlyAdminFields
    67
    78class InterfaceInline(admin.TabularInline):
     
    1516    )
    1617
    17 
    18 class NodeAdmin(admin.ModelAdmin):
     18class NodeAdmin(ReadOnlyAdminFields, admin.ModelAdmin):
     19    readonly = ('masterip', )
    1920    form = NodeForm
    2021    list_display = ('name', 'location','network')
Note: See TracChangeset for help on using the changeset viewer.