I am using django 1.4 and I have a many2many field, so when creating the admin site I wanted to add this field as an inline, here is some code:
class SummaryInli
Thanks Keval Prabhu
class UnitsInline(admin.TabularInline): model = Units extra = 0 verbose_name = 'Units' verbose_name_plural = 'Units of company' **def has_add_permission(self, request, obj=None): return False def has_delete_permission(self, request, obj=None): return False**