Hi,
I'm using django 1.0.2 (from debian lenny). I have this in model.py:
from django.contrib.auth.models import User
class Tc_server:
tc_url = models.CharField(max_length=200)
...
class Vrstva(Vrstvy_zaklad):
...
tc_server = models.ManyToManyField(Tc_server, blank=True)
aktivna_pre = models.ManyToManyField(User, blank=True)
...
and when i add this in admin.py:
class Vrstva_Admin(admin.ModelAdmin):
fields = (..., 'aktivna_pre', 'tc_server', ...)
filter_horizontal = ('aktivna_pre','tc_server')
admin.site.register(Vrstva, Vrstva_Admin)
I get js widget for "tc_server" but not for "aktivna_pre". If I remove
filter_horizontal line I get multiple select box for both fields. What
am I doing wrong?
h
--
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.