-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 0016_show_event_insertion_datetime_in_admin.patch to show missing…
… datetime field in the admin panel
- Loading branch information
1 parent
72e3c3e
commit 77802f8
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
patches/turing/0016_show_event_insertion_datetime_in_admin.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/engine/admin.py b/engine/admin.py | ||
index 84dbdc1..9575d17 100644 | ||
--- a/engine/admin.py | ||
+++ b/engine/admin.py | ||
@@ -6,11 +6,15 @@ from django.contrib.auth.admin import UserAdmin | ||
# Register your models here. | ||
admin.site.register(Gara) | ||
admin.site.register(Squadra) | ||
-admin.site.register(Evento, SimpleHistoryAdmin) | ||
-admin.site.register(Consegna, SimpleHistoryAdmin) | ||
-admin.site.register(Jolly) | ||
admin.site.register(Soluzione) | ||
|
||
+class EventAdmin(SimpleHistoryAdmin): | ||
+ readonly_fields = ('orario',) | ||
+ | ||
+admin.site.register(Consegna, EventAdmin) | ||
+admin.site.register(Jolly, EventAdmin) | ||
+admin.site.register(Bonus, EventAdmin) | ||
+ | ||
class MyUserAdmin(UserAdmin): | ||
list_display = ('username', 'email', 'first_name', 'last_name', 'gender', 'is_staff') | ||
fieldsets = ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters