~eltonplima/sqm/devel

« back to all changes in this revision

Viewing changes to core/network/admin.py

  • Committer: Elton Pereira de Lima
  • Date: 2010-06-18 17:45:26 UTC
  • Revision ID: elton@ti-host01-20100618174526-hnljjul02kba435u
Add mofications to work with django 1.2.
Some classes where moved to network model.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
from django.contrib import admin
21
21
#from sqm.core.network.models import User
22
 
from sqm.core.network.models import Domain
23
 
#from sqm.core.network.models import Protocol
24
 
#from sqm.core.network.models import Port
 
22
from core.network.models import Domain
 
23
from core.network.models import HostServer
 
24
from core.network.models import HostClient
25
25
 
26
26
class DomainAdmin(admin.ModelAdmin):
27
 
    fields = ['quote_free', 'description']
28
 
    list_display = ['domain', 'quote_free', 'description']
29
 
    list_filter = ['quote_free']
30
 
    search_fields = ('domain',)
31
 
 
32
 
#admin.site.register(User, UserAdmin)
 
27
    pass
 
28
 
 
29
 
 
30
class HostServerAdmin(admin.ModelAdmin):
 
31
    pass
 
32
 
 
33
 
 
34
class HostClientAdmin(admin.ModelAdmin):
 
35
    pass
 
36
 
 
37
 
33
38
admin.site.register(Domain, DomainAdmin)
34
 
#admin.site.register(Protocol)
35
 
#admin.site.register(Port)
 
39
admin.site.register(HostClient, HostClientAdmin)
 
40
admin.site.register(HostServer, HostServerAdmin)