274 .first()
275 )
276 if not force and event_invoice:
277 logger.warn(278 'Event Invoice of this month for this event has already been created: %s',
279 event_id,
280 )
274 .first()
275 )
276 if not force and event_invoice:
277 logger.warn(278 'Event Invoice of this month for this event has already been created: %s',
279 event_id,
280 )
The method is marked as deprecated and will be removed in a future version of Python. Consider looking for an alternative in the documentation.