Skip to content

admin.py

This module contains the admin classes that are registered with the Django Admin site.

ImageAdmin

Bases: admin.ModelAdmin

The ImageAdmin class.

Source code in vast_pipeline/admin.py
29
30
31
32
33
34
35
class ImageAdmin(admin.ModelAdmin):
    """
    The ImageAdmin class.
    """
    list_display = ('name', 'ra', 'dec', 'datetime')
    exclude = ('measurements_path', 'path', 'noise_path', 'background_path')
    search_fields = ('name',)

MeasurementAdmin

Bases: admin.ModelAdmin

The MeasurementAdmin class.

Source code in vast_pipeline/admin.py
63
64
65
66
67
68
69
class MeasurementAdmin(admin.ModelAdmin):
    """
    The MeasurementAdmin class.
    """
    list_display = ('name', 'ra', 'dec', 'forced')
    list_filter = ('forced',)
    search_fields = ('name',)

RunAdmin

Bases: admin.ModelAdmin

The RunAdmin class.

Source code in vast_pipeline/admin.py
18
19
20
21
22
23
24
class RunAdmin(admin.ModelAdmin):
    """
    The RunAdmin class.
    """
    list_display = ('name', 'time', 'status')
    list_filter = ('time', 'status')
    exclude = ('path',)

SkyRegionAdmin

Bases: admin.ModelAdmin

The SkyRegionAdmin class.

Source code in vast_pipeline/admin.py
43
44
45
46
47
class SkyRegionAdmin(admin.ModelAdmin):
    """
    The SkyRegionAdmin class.
    """
    list_display = ('__str__', 'centre_ra', 'centre_dec')

SourceAdmin

Bases: admin.ModelAdmin

The SourceAdmin class.

Source code in vast_pipeline/admin.py
52
53
54
55
56
57
58
class SourceAdmin(admin.ModelAdmin):
    """
    The SourceAdmin class.
    """
    list_display = ('name', 'wavg_ra', 'wavg_dec', 'new')
    list_filter = ('new',)
    search_fields = ('name',)

SourceFavAdmin

Bases: admin.ModelAdmin

The SourceFavAdmin class.

Source code in vast_pipeline/admin.py
74
75
76
77
78
79
80
class SourceFavAdmin(admin.ModelAdmin):
    """
    The SourceFavAdmin class.
    """
    list_display = ('user', 'source', 'comment')
    list_filter = ('user',)
    search_fields = ('user','source')

Last update: March 2, 2022
Created: March 2, 2022