from django.contrib import admin
from keckdatabase.models import Object, Observations, Measurements


class ObservationsInLine(admin.StackedInline):
    model = Observations
    fields = ['followup', 'candidates', 'reductionnotes', 'comment']


class MeasurementsInLine(admin.StackedInline):
    model = Measurements
    fields = ['mtype', 'distance', 'gaiadistance', 'sptype', 'propermotion',
        'vmag', 'bminusv']


class ObjectAdmin(admin.ModelAdmin):
    list_filter = ['champion']
    list_per_page = 300
    ordering = ['obj_id']
    list_display = ['name', 'champion']
    fields = ['name', 'ra', 'dec', 'champion']
    inlines = [ObservationsInLine, MeasurementsInLine]


admin.site.register(Object, ObjectAdmin)

b581a7999913720f33e66baad85b44f962ebcdf0
<mask token>


class MeasurementsInLine(admin.StackedInline):
    <mask token>
    <mask token>


class ObjectAdmin(admin.ModelAdmin):
    list_filter = ['champion']
    list_per_page = 300
    ordering = ['obj_id']
    list_display = ['name', 'champion']
    fields = ['name', 'ra', 'dec', 'champion']
    inlines = [ObservationsInLine, MeasurementsInLine]


<mask token>

<mask token>


class ObservationsInLine(admin.StackedInline):
    <mask token>
    <mask token>


class MeasurementsInLine(admin.StackedInline):
    model = Measurements
    fields = ['mtype', 'distance', 'gaiadistance', 'sptype', 'propermotion',
        'vmag', 'bminusv']


class ObjectAdmin(admin.ModelAdmin):
    list_filter = ['champion']
    list_per_page = 300
    ordering = ['obj_id']
    list_display = ['name', 'champion']
    fields = ['name', 'ra', 'dec', 'champion']
    inlines = [ObservationsInLine, MeasurementsInLine]


<mask token>

<mask token>


class ObservationsInLine(admin.StackedInline):
    model = Observations
    fields = ['followup', 'candidates', 'reductionnotes', 'comment']


class MeasurementsInLine(admin.StackedInline):
    model = Measurements
    fields = ['mtype', 'distance', 'gaiadistance', 'sptype', 'propermotion',
        'vmag', 'bminusv']


class ObjectAdmin(admin.ModelAdmin):
    list_filter = ['champion']
    list_per_page = 300
    ordering = ['obj_id']
    list_display = ['name', 'champion']
    fields = ['name', 'ra', 'dec', 'champion']
    inlines = [ObservationsInLine, MeasurementsInLine]


<mask token>

from django.contrib import admin
from keckdatabase.models import Object, Observations, Measurements


class ObservationsInLine(admin.StackedInline):
    model = Observations
    fields = ['followup', 'candidates', 'reductionnotes', 'comment']


class MeasurementsInLine(admin.StackedInline):
    model = Measurements
    fields = ['mtype', 'distance', 'gaiadistance', 'sptype', 'propermotion',
        'vmag', 'bminusv']


class ObjectAdmin(admin.ModelAdmin):
    list_filter = ['champion']
    list_per_page = 300
    ordering = ['obj_id']
    list_display = ['name', 'champion']
    fields = ['name', 'ra', 'dec', 'champion']
    inlines = [ObservationsInLine, MeasurementsInLine]


admin.site.register(Object, ObjectAdmin)
