mirror of
https://github.com/django-import-export/django-import-export.git
synced 2025-12-09 18:53:56 +03:00
added dynamic render for copyright year (#2082)
This commit is contained in:
parent
12fdb9d247
commit
c109f27a2b
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import sys
|
||||
from datetime import datetime
|
||||
from importlib.metadata import version
|
||||
|
||||
import django
|
||||
|
|
@ -39,7 +40,8 @@ master_doc = "index"
|
|||
|
||||
# General information about the project.
|
||||
project = "django-import-export"
|
||||
copyright = "2012–2024, Bojan Mihelac and others."
|
||||
current_year = str(datetime.now().year)
|
||||
copyright = f"2012–{current_year}, Bojan Mihelac and others."
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user