Django – Excluding some fields in Inline Admin Interface

with exclude you can do it

ex:

class Book(models.Model):
   author = models.ForeignKey(Author)
   title = models.CharField(max_length=100)
   short_description = models.CharField(max_length=200)

class BookInline(admin.TabularInline):
    model = Book
    exclude = ['short_description']

Leave a Comment

techhipbettruvabetnorabahisbahis forumu