28 lines
1005 B
Python
28 lines
1005 B
Python
from django.contrib import admin
|
|
|
|
from django_coreprotect.models import CoArtMap, CoBlock, CoBlockdataMap, CoChat, CoCommand, CoContainer, CoDatabaseLock, \
|
|
CoEntity, CoEntityMap, CoMaterialMap, CoSession, CoSign, CoSkull, CoUser, CoUsernameLog, CoVersion, CoWorld, Preset
|
|
|
|
try:
|
|
pass
|
|
# admin.site.register(CoArtMap)
|
|
# admin.site.register(CoBlock)
|
|
# admin.site.register(CoBlockdataMap)
|
|
# admin.site.register(CoChat)
|
|
# admin.site.register(CoCommand)
|
|
# admin.site.register(CoContainer)
|
|
# admin.site.register(CoDatabaseLock)
|
|
# admin.site.register(CoEntity)
|
|
# admin.site.register(CoEntityMap)
|
|
# admin.site.register(CoMaterialMap)
|
|
# admin.site.register(CoSession)
|
|
# admin.site.register(CoSign)
|
|
# admin.site.register(CoSkull)
|
|
# admin.site.register(CoUser)
|
|
# admin.site.register(CoUsernameLog)
|
|
# admin.site.register(CoVersion)
|
|
# admin.site.register(CoWorld)
|
|
admin.site.register(Preset)
|
|
except admin.sites.AlreadyRegistered:
|
|
pass
|