This instance will be upgraded to Heptapod 0.26.0rc1 on 2021-10-25 at 14:00 UTC+2 (a few minutes of down time)

Commit 0265b4c8 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

User: cleanup remnant of adoption

Instead of `User` we better use `cls` in the classmethods,
to avoid puzzling behaviour if subclasses arise in the future.
parent c58dc5d814f9
......@@ -80,10 +80,10 @@ class User(object):
user = heptapod.users.get(name)
if user is None:
user =, name)
user =, name)
if user is None:
user = User.create(heptapod, name,
password=password, fullname=fullname)
user = cls.create(heptapod, name,
password=password, fullname=fullname)
user.password = password
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment