Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6ea9e6a

Browse files
authored
Calculate copyright date as it changes (#881)
1 parent cfca644 commit 6ea9e6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎example/tests/test_serializers.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from datetime import datetime
12
from unittest import mock
23

34
import pytest
@@ -88,7 +89,7 @@ class Meta:
8889
[
8990
("name", "Some Blog"),
9091
("tags", []),
91-
("copyright", 2020),
92+
("copyright", datetime.now().year),
9293
("url", "http://testserver/blogs/1"),
9394
]
9495
),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /