Adjust user model.
This commit is contained in:
parent
1ca46d0bf2
commit
9acbefc105
|
@ -58,6 +58,9 @@ class Edit(Base):
|
||||||
depicts = relationship('DepictsItem')
|
depicts = relationship('DepictsItem')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def user_page_url(self):
|
def url_norm_username(self):
|
||||||
start = 'https://www.wikidata.org/wiki/User:'
|
return quote(self.username.replace(' ', '_'))
|
||||||
return start + quote(self.username.replace(' ', '_'))
|
|
||||||
|
@property
|
||||||
|
def user_wikidata_url(self):
|
||||||
|
return 'https://www.wikidata.org/wiki/User:' + self.url_norm_username
|
||||||
|
|
Loading…
Reference in a new issue