kadi.events.models.BaseModel#
- class kadi.events.models.BaseModel(*args, **kwargs)#
Bases:
django.db.models.ModelBase class for for all models.
- _get_obsid_start_attr = 'date'#
- update_priority = 0#
- objects#
- classmethod from_dict(model_dict, logger=None)#
Set model from a dict model_dict which might have extra stuff not in Model. If logger is supplied then log output at debug level.
- classmethod get_model_fields()#
Return a list of model fields (works from class or instance).
- property model_name#
- classmethod get_date_intervals(start, stop, pad=None, **filter_kwargs)#
- get_obsid()#
Return the obsid associated with the event.
Typically this is the obsid at the start of the event, but for maneuvers it is the obsid at the end of the maneuver.
- Returns:
- obsid
- __bytes__()#
- __str__()#