How to display django column filed and help_text horizontal? -


i wrote model this:

from django.db import models ckeditor.fields import richtextfield django import forms django.contrib import admin ckeditor.widgets import ckeditorwidget import datetime  class post(models.model):     title = models.charfield(max_length=200,default="no-title")     tags = models.charfield(max_length=200,default="blog",help_text="comma separated")     summary = models.textfield(max_length=300,default="summary",help_text="article short introduction")     cover = models.imagefield("cover img",upload_to="blog/")     last_activity = models.datetimefield(default=datetime.datetime.now,auto_now=true)     keywords = models.charfield(max_length=200,default="no-keyword",help_text="comma separated")     content = richtextfield()      def __unicode__(self):         return self.title  class postadminform(forms.modelform):     content = forms.charfield(widget=ckeditorwidget())     fields = ('title','tags')     class meta:         model = post  class postadmin(admin.modeladmin):     form = postadminform      readonly_fields = ('last_activity',)  admin.site.register(post, postadmin) 

and model displayed in admin page this: enter image description here

you can see tags column input text , help_text string wew displayed vertically, not want, want display tags column input text , help_text property horizontally.

tags needs relation , not char field.

you can try using third party tagging implementation django (for example, https://github.com/alex/django-taggit)


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -