I've been meaning to do this for a while as well. Break CommChannel and CommChannelMessage out into a separate app. I had them lumped in with objects/models.py due to some funkage with the admin site registering that is now resolved.

NOTE: You will need to syncdb and re-create any channels you may have had. Sorry for the inconvenience, we're still early enough in development where breakages like this may happen once in a blue moon.
This commit is contained in:
Greg Taylor 2009-04-17 04:15:54 +00:00
parent 42f11b208b
commit 9f86a4c586
6 changed files with 7 additions and 115 deletions

View file

@ -1,4 +1,4 @@
from src.objects.models import Attribute, Object, CommChannel, CommChannelMessage
from src.objects.models import Attribute, Object
from django.contrib import admin
class AttributeAdmin(admin.ModelAdmin):
@ -11,12 +11,4 @@ class ObjectAdmin(admin.ModelAdmin):
list_filter = ('type',)
search_fields = ['name']
save_on_top = True
admin.site.register(Object, ObjectAdmin)
class CommChannelAdmin(admin.ModelAdmin):
list_display = ('name', 'owner')
admin.site.register(CommChannel, CommChannelAdmin)
class CommChannelMessageAdmin(admin.ModelAdmin):
list_display = ('channel', 'message')
admin.site.register(CommChannelMessage, CommChannelMessageAdmin)
admin.site.register(Object, ObjectAdmin)