On Sep 19, 5:09 am, Markos Gogoulos <
mgogou...@gmail.com> wrote:
> on the admin panel I am trying to display both models of an
> ManyToManyField relationship. Say for example there are these two
> models:
>
> class Software(models.Model):
> name = models.CharField(max_length=50)
> categories = models.ManyToManyField(Category)
>
> class Category(models.Model):
> name = models.CharField(max_length=50)
Assuming you mean two-way inlines, I discovered yesterday that it's
very easy to do this in Django 1.0 using the model's admin.py and the
new inlines system:
class SoftwareInline(admin.StackedInline):
model = Software
class CategoryAdmin(admin.ModelAdmin):
inlines = [SoftwareInline]
Besides StackedInline you also have TabularInline.
Jerry