python - Django admin display specific model in form -


i'm creating project make collective translations, got original text, images. basic idea split text chunks, chunks different types: text , images (images can uploaded, alt , description edited...)

there proof-of-concept

class source(models.model):     title = models.charfield(max_length=255, unique=true)  class sourcechunk(models.model):     source = models.foreignkey(source)  class sourcetextchunk(models.model):     chunk = models.foreignkey(sourcechunk)     text = models.textfield()  class sourceimagechunk(models.model):     chunk = models.foreignkey(sourcechunk)     image = models.filefield()     alt = models.textfield()     title = models.textfield()     transcription = models.textfield()  class sourceadmin(admin.modeladmin):     pass 

and want create form, using sourceadmin (in admin page), displayed way:

... other fields ... text form text form text form text form image form text form text form text form 


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -