This commit is contained in:
SDE
2023-05-16 17:14:16 +03:00
commit c17da7eaab
157 changed files with 14503 additions and 0 deletions

21
files_widget/admin.py Normal file
View File

@@ -0,0 +1,21 @@
from django.contrib import admin
from .models import IconSet, FileIcon
from .conf import *
# currently not used
class MyModelAdmin(admin.ModelAdmin):
def get_urls(self):
urls = super(MyModelAdmin, self).get_urls()
my_urls = patterns('',
(r'^my_view/$', self.my_view)
)
return my_urls + urls
def my_view(self, request):
# custom view which should return an HttpResponse
pass
#admin.site.register(IconSet)
#admin.site.register(FileIcon)