o
    dix                     @   s0  d dl mZ d dlmZmZmZ d dlmZ G dd deZ	G dd deZ
G dd	 d	eZG d
d deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG d d! d!eZG d"d# d#eZd$S )%    )BaseUserManager)QuerySetExistsOuterRef)modelsc                   @   s   e Zd Zdd ZdS )StationQuerySetc                 C   s    | j ttjjjtdddS )Npk)station)Zis_rejected)annotater   station_modelsRejectedStationsobjectsfilterr   self r   `/var/www/html/evchargy.com/django-station-ev/station_ev/apps/station/managers/station_manager.pyannotate_is_rejected_station   s
   z,StationQuerySet.annotate_is_rejected_stationN)__name__
__module____qualname__r   r   r   r   r   r      s    r   c                   @   s   e Zd ZdZdd ZdS )StationManagerz
    This is the StationManager.

    It manages queries for the Station model, filtering by is_removed=False.

    Methods:
        get_queryset: Filter the queryset to include only non-removed entries.
    c                 C   s   t | j| jdjddS )N)usingF
is_removed)r   model_dbr   r   r   r   r   get_queryset   s   zStationManager.get_querysetN)r   r   r   __doc__r   r   r   r   r   r      s    	r   c                           e Zd ZdZ fddZ  ZS )StationAmenitiesManagerz
    This is the StationAmenitiesManager.

    It manages queries for the StationAmenities model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                       t    S Nsuperr   r   r   	__class__r   r   r   *      z$StationAmenitiesManager.get_querysetr   r   r   r   r   __classcell__r   r   r%   r   r            	r    c                       r   )StationConnectorsManagerz
    This is the StationConnectorsManager.

    It manages queries for the StationConnectors model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r!   r"   r#   r   r%   r   r   r   9   r'   z%StationConnectorsManager.get_querysetr(   r   r   r%   r   r+   /   r*   r+   c                       r   )StationUsersManagerz
    This is the StationUsersManager.

    It manages queries for the StationUser model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                       t   jddS NFr   r#   r   r%   r   r   r   H      z StationUsersManager.get_querysetr(   r   r   r%   r   r,   >   r*   r,   c                       r   )StationLocationsManagerz
    This is the StationLocationsManager.

    It manages queries for the StationLocation model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r-   r.   r#   r   r%   r   r   r   W   r/   z$StationLocationsManager.get_querysetr(   r   r   r%   r   r0   M   r*   r0   c                       r   )StationMediaManagerz
    This is the StationMediaManager.

    It manages queries for the StationMedia model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r-   r.   r#   r   r%   r   r   r   f   r/   z StationMediaManager.get_querysetr(   r   r   r%   r   r1   \   r*   r1   c                       r   )StationRatingManagerz
    This is the StationRatingManager.

    It manages queries for the StationRating model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r-   r.   r#   r   r%   r   r   r   u   r/   z!StationRatingManager.get_querysetr(   r   r   r%   r   r2   k   r*   r2   c                       r   )StationRatingMediaManagerz
    This is the StationRatingMediaManager.

    It manages queries for the StationRatingMedia model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r-   r.   r#   r   r%   r   r   r      r/   z&StationRatingMediaManager.get_querysetr(   r   r   r%   r   r3   z   r*   r3   c                       r   )SuggestStationManagerz
    This is the SuggestStationManager.

    It manages queries for the SuggestStation model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r-   r.   r#   r   r%   r   r   r      r/   z"SuggestStationManager.get_querysetr(   r   r   r%   r   r4      r*   r4   c                       r   )SuggestStationMediaManagerz
    This is the SuggestStationMediaManager.

    It manages queries for the SuggestStationMedia model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r-   r.   r#   r   r%   r   r   r      r/   z'SuggestStationMediaManager.get_querysetr(   r   r   r%   r   r5      r*   r5   c                       r   )StationBookmarkManagerz
    This is the StationBookmarkManager.

    It manages queries for the StationBookmark model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r-   r.   r#   r   r%   r   r   r      r/   z#StationBookmarkManager.get_querysetr(   r   r   r%   r   r6      r*   r6   c                       r   )StationReportManagerz
    This is the StationReportManager.

    It manages queries for the StationReport model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r-   r.   r#   r   r%   r   r   r      r/   z!StationReportManager.get_querysetr(   r   r   r%   r   r7      r*   r7   c                       r   )StationReportReasonManagerz
    This is the StationReportReasonManager.

    It manages queries for the StationReasonMaster model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r-   r.   r#   r   r%   r   r   r      r/   z'StationReportReasonManager.get_querysetr(   r   r   r%   r   r8      r*   r8   c                       r   )StationCheckInManagerz
    This is the StationCheckInManager.

    It manages queries for the StationCheckInManager model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r-   r.   r#   r   r%   r   r   r      r/   z"StationCheckInManager.get_querysetr(   r   r   r%   r   r9      r*   r9   c                       r   )RejectedStationsManagerz
    This is the RejectedStationsManager.

    It manages queries for the RejectedStations model.

    Methods:
        get_queryset: Filter the queryset to include only entries.
    c                    r-   r.   r#   r   r%   r   r   r      r/   z$RejectedStationsManager.get_querysetr(   r   r   r%   r   r:      r*   r:   N)django.contrib.auth.modelsr   django.db.modelsr   r   r   Zapps.stationr   r   r   r   r    r+   r,   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r   r   r   r   <module>   s&    	