1
0
Fork 0
merge-requests/56/head
Nikos Roussos 2014-10-16 16:42:44 +03:00
parent 5010321641
commit 94ed078f5c
4 changed files with 8 additions and 10 deletions

View File

@ -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):

View File

@ -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})

View File

@ -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',)

View File

@ -1,9 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
@ -27,4 +23,4 @@ setup(
],
zip_safe=False,
scripts=['SatNOGS/manage.py'],
)
)