Changes between Initial Version and Version 1 of Ticket #28950
- Timestamp:
- Dec 20, 2017, 10:54:43 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28950 – Description
initial v1 1 1 I have models Foo and Bar for example: 2 2 3 class Foo(models.Model):4 ....3 class Foo(models.Model): 4 .... 5 5 6 class Bar(models.Model):7 foo = models.OneToOneField(Foo)8 required_field = models.CharField(blank=False)6 class Bar(models.Model): 7 foo = models.OneToOneField(Foo) 8 required_field = models.CharField(blank=False) 9 9 10 10 11 11 and in the admin.py i have: 12 12 13 class BarInline(admin.StackedInline):14 model = Bar13 class BarInline(admin.StackedInline): 14 model = Bar 15 15 16 @admin.register(Foo)17 class FooAdmin(admin.ModelAdmin):18 inlines = [BarInline]16 @admin.register(Foo) 17 class FooAdmin(admin.ModelAdmin): 18 inlines = [BarInline] 19 19 20 20