diff --git a/swh/model/model.py b/swh/model/model.py
index f551706d31cd491e034ab2c72fead75fab3065be..ec644fa3800e38d505732c4dbf6615db831772c3 100644
--- a/swh/model/model.py
+++ b/swh/model/model.py
@@ -119,7 +119,7 @@ class TimestampWithTimezone(BaseModel):
     @classmethod
     def from_dict(cls, d):
         """Builds a TimestampWithTimezone from any of the formats
-        accepted by :py:`swh.model.normalize_timestamp`."""
+        accepted by :func:`swh.model.normalize_timestamp`."""
         d = normalize_timestamp(d)
         return cls(
             timestamp=Timestamp.from_dict(d['timestamp']),