python - Django Admin modifications -


i have app in 2 models related foreign keys.

class trans(models.model):     pk = uuidfield(auto=true, primary_key=true, serialize=true, hyphenate=true)     en = models.textfield('english')   class article(models.model):     pk = uuidfield(auto=true, primary_key=true, serialize=true, hyphenate=true)     title = models.onetoonefield(trans)     description = models.onetoonefield(trans) 

now if want add values in article model via admin interface , title , description there '+' sign above field add values , on click trans model form popup shown can add values , instance attach article title field (usual process).

but not want add values , want show simple text field admin there both title , description , on save values saved trans model , instance in article model . in simple words not want show '+' sign admin simple text field.

is possible in django admin if yes suggestions ?


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -