Can i make an stackedInline connnection between two model without having any connection between them ? in Django

class Item(models.Model):
    name=models.CharField(max_length=250)
    description = model.TextField()

class Photo(models.Model):
    item = models.ChaField(max_length=250)
    title=models.ChaField(max_length=250)

here is admin.py

class PhotoInline(admin.StackedInline):
    model = Photo

class ItemAdmin(admin.ModelAdmin):
    inlines = [PhotoInline]

admin.site.register(Item,strong text ItemAdmin)
admin.site.register(Photo)

i want to have an inline connection between without them having any relationship

Back to Top