Python 2.6.1
Django (1, 3, 0, 'final', 0)
hello I've added Category model to apps models
class Category(models.Model):
app_label = _('News')
title = models.CharField(max_length=50)
slug = models.SlugField(unique=True)
description = models.TextField()
In admin.py of my app:
class CategoryAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("title",)}
admin.site.register(Category)
But while adding Category there's no JS magic of automatically adding
slug. Besides I see no errors in Firebug.
What could cause the problem?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.