class Foo(models.Model):
...
my_max_total = models.IntegerField()
class Bar(models.Model):
total = models.IntegerField()
my_foo = models.ForeignKey(Foo)
class BarInline(admin.TabularInline):
model = Bar
class FooAdmin(admin.ModelAdmin):
inlines = (BarInline, )