pep8
parent
5010321641
commit
94ed078f5c
|
@ -1,4 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from django.contrib import admin
|
||||
|
||||
from base.models import Antenna, Satellite, Station, Transponder, Observation, Data
|
||||
|
@ -17,7 +16,8 @@ class SatelliteAdmin(admin.ModelAdmin):
|
|||
|
||||
|
||||
class TransponderAdmin(admin.ModelAdmin):
|
||||
list_display = ('satellite', 'description', 'uplink_low', 'uplink_high', 'downlink_low', 'downlink_high')
|
||||
list_display = ('satellite', 'description', 'uplink_low',
|
||||
'uplink_high', 'downlink_low', 'downlink_high')
|
||||
|
||||
|
||||
class ObservasionAdmin(admin.ModelAdmin):
|
||||
|
|
|
@ -40,4 +40,5 @@ def view_observation(request, id):
|
|||
observation = get_object_or_404(Observation, id=id)
|
||||
data = Data.objects.filter(observation=observation)
|
||||
|
||||
return render(request, 'base/observation_view.html', {'observation': observation, 'data': data})
|
||||
return render(request, 'base/observation_view.html',
|
||||
{'observation': observation, 'data': data})
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Local Configurations
|
||||
|
||||
|
@ -28,7 +27,9 @@ class Local(Common):
|
|||
# End mail settings
|
||||
|
||||
# django-debug-toolbar
|
||||
MIDDLEWARE_CLASSES = Common.MIDDLEWARE_CLASSES + ('debug_toolbar.middleware.DebugToolbarMiddleware',)
|
||||
MIDDLEWARE_CLASSES = Common.MIDDLEWARE_CLASSES + (
|
||||
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||
)
|
||||
INSTALLED_APPS += ('debug_toolbar',)
|
||||
|
||||
INTERNAL_IPS = ('127.0.0.1',)
|
||||
|
|
Loading…
Reference in New Issue