mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixing E302 Errors
Signed-off-by: Jason Myers <jason@jasonamyers.com>
This commit is contained in:
parent
2a03a9a9a1
commit
c3791463a5
98 changed files with 748 additions and 96 deletions
|
@ -2,11 +2,13 @@ from django.contrib import admin
|
|||
|
||||
from .models import Event, Timestamp
|
||||
|
||||
|
||||
class EventAdmin(admin.ModelAdmin):
|
||||
list_display = ('dt',)
|
||||
|
||||
admin.site.register(Event, EventAdmin)
|
||||
|
||||
|
||||
class TimestampAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ('created', 'updated')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue