Skip to content

Commit

Permalink
Merge pull request #208 from i3thuan5/移除唯讀外掛
Browse files Browse the repository at this point in the history
移除唯讀外掛 fix #30
  • Loading branch information
sih4sing5hong5 committed Sep 19, 2018
2 parents 3b309b3 + d43b00c commit ae85656
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 43 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
https://github.com/a8568730/django/archive/url_prefix_unicode.zip
django==2.1
gunicorn==19.7.1
htsengine==0.2.4
kau3-tian2-iong7-ji7==0.1.3
Expand Down
40 changes: 0 additions & 40 deletions 語料庫/widgets/ReadOnlyAdminFields.py

This file was deleted.

3 changes: 1 addition & 2 deletions 語料庫/管理/校對.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from django.db.models.query_utils import Q
from django.forms.widgets import CheckboxSelectMultiple, Textarea
from django.utils.timezone import now
from 語料庫.widgets.ReadOnlyAdminFields import ReadOnlyAdminFields
from 語料庫.models import 語料表
from 檢查工具.models import 對齊狀態表

Expand Down Expand Up @@ -92,7 +91,7 @@ def has_delete_permission(self, request, obj):
return False


class 校對表管理(ReadOnlyAdminFields, admin.ModelAdmin):
class 校對表管理(admin.ModelAdmin):
# change list
list_display = [
'id', '語者', '狀況',
Expand Down

0 comments on commit ae85656

Please sign in to comment.