Changeset 6397


Ignore:
Timestamp:
Nov 28, 2008, 8:15:02 PM (16 years ago)
Author:
RIck van der Zwet
Message:

Django 1.0.2 fixed some annoying bugs, with regards to for example the broken exclude stuff

Include a sample of IP management. We have been re-inventing the weel ;-). I am 100% positive we could make it all work into the admin interface in almost no-time ;-) Let's stick with this approch might be a good idea :-)

Location:
branches/exodus-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/exodus-admin/base.cfg

    r6349 r6397  
    3333[django]
    3434recipe = djangorecipe
    35 version = 1.0
     35version = 1.0.2
    3636project = exodus
    3737wsgi = true
  • branches/exodus-admin/exodus/admin.py

    r6332 r6397  
    33from exodus.models import *
    44
     5class NodeAdmin(admin.ModelAdmin):
     6    exclude = ('masterip',)
     7
     8    def save_model(self, request, obj, form, change):
     9        #XXX: Testing hidden field commits
     10        obj.masterip = '172.168.1.1'
     11        obj.save()
    512
    613admin.site.register(Antenna)
     
    815admin.site.register(DnsServer)
    916admin.site.register(Network)
    10 admin.site.register(Node)
     17admin.site.register(Node,NodeAdmin)
    1118admin.site.register(Interface)
    1219admin.site.register(PublicAP)
Note: See TracChangeset for help on using the changeset viewer.