Skip to content

Commit c0ddb97

Browse files
author
yangmv
committed
edit
1 parent 40ff12b commit c0ddb97

File tree

13 files changed

+1
-113
lines changed

13 files changed

+1
-113
lines changed
-83 Bytes
Binary file not shown.

apps/assets/admin.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
from django.contrib import admin
2-
from assets.models.book import *
32
from assets.models.server import *
43

5-
admin.site.register(Publisher)
6-
admin.site.register(Book)
7-
84
admin.site.register(Server)
95
admin.site.register(ServerGroup)
106
admin.site.register(ServerAuthRule)

apps/assets/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
@file: __init__.py.py
66
@time: 18/11/19下午3:45
77
'''
8-
from .book import *
98
from .server import *
-24 Bytes
Binary file not shown.
-1.48 KB
Binary file not shown.

apps/assets/models/book.py

Lines changed: 0 additions & 28 deletions
This file was deleted.
-1.11 KB
Binary file not shown.

apps/assets/serializers/book.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

apps/assets/urls.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
app_name = 'assets'
1414

1515
router = DefaultRouter()
16-
# books用Viewset+Router模式
17-
# 相当于生成了 'books/' 'books/<int:pk>/'
18-
router.register('books',BookViewSet)
1916
router.register('server',ServerViewSet)
2017
router.register('server_group',ServerGroupViewSet)
2118
router.register('server_auth',ServerAuthViewSet)
-1.63 KB
Binary file not shown.

0 commit comments

Comments
 (0)