(self)
This is used for queries that need an actual date (e.g. django)
        that is computed based on the inclusive flag.
This is used for queries that need an actual date (e.g. django)
        that is computed based on the inclusive flag.
This is used for queries that need an actual date ( e . g . django ) that is computed based on the inclusive flag .
def computed_enddate(self):
        """
        This is used for queries that need an actual date (e.g. django)
        that is computed based on the inclusive flag.
        """
        if self.enddate:
            # you need to add a day to enddate if your dates are meant to be inclusive
            offset = datetime.timedelta(days=1 if self.inclusive else 0)
            return (self.enddate + offset)
def computed_enddate ( self ) : if self . enddate : # you need to add a day to enddate if your dates are meant to be inclusive offset = datetime . timedelta ( days = 1 if self . inclusive else 0 ) return ( self . enddate + offset )