Skip to content

Commit ed0d1ef

Browse files
committed
Fix bug in canonical_name introduced with generic states
- Legacy-Id: 3694
1 parent 9a8b9ea commit ed0d1ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

redesign/doc/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def latest_event(self, *args, **filter_args):
166166

167167
def canonical_name(self):
168168
name = self.name
169-
if self.type_id == "draft" and self.get_state() == "rfc":
169+
if self.type_id == "draft" and self.get_state_slug() == "rfc":
170170
a = self.docalias_set.filter(name__startswith="rfc")
171171
if a:
172172
name = a[0].name

0 commit comments

Comments
 (0)