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

class Item(models.Model):
    description = model.TextField()

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

here is

class PhotoInline(admin.StackedInline):
    model = Photo

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

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

Back to Top