url schema
This commit is contained in:
parent
3b75097fed
commit
4f37ce9c7e
10 changed files with 12 additions and 12 deletions
Binary file not shown.
|
|
@ -7,6 +7,7 @@ def generate_geohash(generator):
|
|||
lat, lon = [float(i) for i in article.metadata['location'].replace(' ', '').split(',')]
|
||||
article.metadata['latlon'] = article.metadata['location'].replace(' ', '')
|
||||
article.metadata['geohash'] = gh.encode(lat, lon, 11)
|
||||
article.slug = gh.encode(lat, lon, 11)
|
||||
|
||||
def register():
|
||||
signals.article_generator_finalized.connect(generate_geohash)
|
||||
Loading…
Add table
Add a link
Reference in a new issue