示例#1
0
class StcforFilterSet(
        BaseFilterSet(Stationdaylight,
                      localtion_field_name='stationid',
                      time_field_name='obstime')):
    class Meta:
        model = Stationdaylight  # Stcfor
        fields = filter_fields
示例#2
0
class TideFilterSet(
        BaseFilterSet(Tide,
                      localtion_field_name='stationid',
                      time_field_name='time')):
    class Meta:
        model = Tide
        fields = filter_fields
示例#3
0
class MarineFilterSet(
        BaseFilterSet(Marine,
                      localtion_field_name='locationname',
                      time_field_name='issuetime')):
    class Meta:
        model = Marine
        fields = filter_fields
示例#4
0
class BuoyFilterSet(
        BaseFilterSet(Buoy,
                      localtion_field_name='stationid',
                      time_field_name='obstime')):
    class Meta:
        model = Buoy
        fields = filter_fields
示例#5
0
class AqfnFilterSet(
        BaseFilterSet(models.Aqfn,
                      localtion_field_name='area',
                      time_field_name='publish_time')):
    class Meta:
        model = models.Aqfn
        fields = filter_fields
示例#6
0
class AquaCultureFilterSet(
        BaseFilterSet(Aquaculture,
                      localtion_field_name='id',
                      time_field_name='at')):
    class Meta:
        model = Aquaculture
        fields = filter_fields
示例#7
0
class AqiFilterSet(
        BaseFilterSet(models.Aqi,
                      localtion_field_name='site_name',
                      time_field_name='publish_time')):
    class Meta:
        model = models.Aqi
        fields = filter_fields
示例#8
0
class STwarnFilterSet(
        BaseFilterSet(STwarn,
                      localtion_field_name='view_id',
                      time_field_name='time')):
    class Meta:
        model = STwarn
        fields = filter_fields
示例#9
0
class StationObs2FilterSet(
        BaseFilterSet(Stationobs2,
                      localtion_field_name='stationid',
                      time_field_name='obstime')):
    class Meta:
        model = Stationobs2
        fields = filter_fields
示例#10
0
class Nww3WrfFilterSet(
        BaseFilterSet(Nww3Wrf,
                      localtion_field_name='mapper_id',
                      time_field_name='time')):
    class Meta:
        model = Nww3Wrf
        fields = filter_fields
示例#11
0
class ObserveDatumFilterSet(
        BaseFilterSet(ObserveDatum,
                      localtion_field_name='stationid',
                      time_field_name='observetime')):
    class Meta:
        model = ObserveDatum
        fields = filter_fields
示例#12
0
class Ocm3FilterSet(
        BaseFilterSet(Ocm3,
                      localtion_field_name='mapper_id',
                      time_field_name='time')):
    depth = MultipleChoiceFilter(choices=[(-1, -1), (-5, -5), (-10, -10)],
                                 name='depth',
                                 label='depth',
                                 help_text=u'深度')

    class Meta:
        model = Ocm3
        fields = filter_fields + ['depth']
示例#13
0
class HarborFilterSet(
        BaseFilterSet(Harbor, localtion_field_name='id',
                      time_field_name='at')):
    class Meta:
        model = Harbor
        fields = filter_fields
示例#14
0
class FishingFilterSet(
        BaseFilterSet(Fishing, localtion_field_name='id',
                      time_field_name='at')):
    class Meta:
        model = Fishing
        fields = filter_fields
示例#15
0
class GtFilterSet(
        BaseFilterSet(Gt, localtion_field_name='id', time_field_name='time')):
    class Meta:
        model = Gt
        fields = filter_fields