Nope, sorry I missread
El mié, 1 de dic. de 2021 a la(s) 19:05, Gabo LaTo (elgatogabr...@gmail.com)
escribió:
> Aren't you missing the model class attribute in TestMyModelCreate?
>
> Like this:
>
> class TestMyModelCreate(admin.ModelAdmin):
> model = MyModel
> fields = ['text', ]
> in
Aren't you missing the model class attribute in TestMyModelCreate?
Like this:
class TestMyModelCreate(admin.ModelAdmin):
model = MyModel
fields = ['text', ]
inlines = [RelatedModelInlineTabular]
El lun, 29 de nov. de 2021 a la(s) 20:28, 'Andrea Arighi' via Django users (
django-use
Good evening,
I am encountering a weird bug when rendering Inline forms on the "Add" view
of a ModelAdmin.
Here is a minimum example with Django version 2.2.4
- - - - - - -
in models.py:
class MyModel(models.Model):
text = models.CharField(max_length=100)
class RelatedModel(models.Model):
3 matches
Mail list logo