mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 18:26:32 +01:00
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:
parent
42f11b208b
commit
9f86a4c586
6 changed files with 7 additions and 115 deletions
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue