To precise:
I have 2 models:

class Job(models.Model):
    name = models.CharField(max_length=150, unique=True)
    slug = models.SlugField(max_length=150, unique=True)
class JobType(models.Model):
    name = models.CharField(max_length=150, unique=True)
    slug = models.SlugField(max_length=150, unique=True)
    job = models.ManyToManyField(Job, blank=True)

In admin.py I want to make some customizations:

class JobTypeAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    filter_horizontal = ('job',)

 All is fine. Is it possible, to add filter_horizontal to Job model. What i 
mean: In Job edit want to have all job types displayed with nice 
filter_horizontal and with ability to manage it as it should?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to