littleq0903 / appengine-admin

Automatically exported from code.google.com/p/appengine-admin
0 stars 0 forks source link

Automatic SlugField #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be great to have an automatic SlugField, just like in Django Admin
interface.

Smth like this...

class BlogEntry(db.Model):
    title = db.StringProperty()
    slug = db.SlugProperty(prepopulate_from='title')

and in background post processing:

    from django.template.defaultfilters import slugify
    slug = slugify(title)

Thanx! Great idea!

Original issue reported on code.google.com by aab...@gmail.com on 27 Nov 2008 at 8:19

GoogleCodeExporter commented 9 years ago

Original comment by valdiic on 27 Nov 2008 at 1:09

GoogleCodeExporter commented 9 years ago

Original comment by valdiic on 27 Nov 2008 at 1:11