Only sluggify if no dupe.
parent
9e5778d092
commit
97a71d679e
|
@ -7,7 +7,7 @@ import uuid
|
|||
|
||||
|
||||
def slugify_uniquely(value, model, slugfield="slug"):
|
||||
suffix = str(uuid.uuid4()).split('-')[0]
|
||||
suffix = False
|
||||
potential = base = slugify(value)[:255]
|
||||
|
||||
while True:
|
||||
|
|
|
@ -65,5 +65,8 @@
|
|||
</script>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
|
||||
<script>
|
||||
document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')
|
||||
window.ll = function() {};
|
||||
</script>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue