Have tried out this app and it is exactly what I was looking for!
I strongly recommend it for anyone who wants an easy way to manage attaching and removing tags in the admin site
Thanks again for your help : )
Jon
On Thursday, March 28, 2013 1:33:11 PM UTC, Jonathan Harris wrote:
-- On Thursday, March 28, 2013 1:33:11 PM UTC, Jonathan Harris wrote:
Hi AllNew to Django and coding in general, so sorry if this has been covered - I did search the group postings, have read the documentation, trawled the net etc, but couldn't find anything directly relevantI have been following various tutorials (django homepage, youtube etc) for how to start creating a blog siteWhat I would like to do seems really simple, but I cannot find a solution
Django 1.5 on Ubuntu Server 12.04LTSIt uses Taggable Manager, so in models.py we see#models.pyfrom taggit.managers import TaggableManagerclass Post(models.Model):title = models.CharField(max_length=100) ....tags = TaggableManager()#admin.pyfrom blog.models import Postclass PostAdmin(admin.ModelAdmin):fieldsets = [('Title', {'fields': ['title']}),......('Tags', {'fields': ['tags'], 'classes': ['collapse']}),]admin.site.register(Post, PostAdmin)____This works fineWhat I would like to do is change the way that tags can be viewed and selected in the admin siteCurrently, it is as a comma separated listI would like to pre-create the tags, then see them in a drop down, or table, or similar, so that one or more may be selectedThe view I am looking to achieve would be as if 'filter_horizontal = ['tags']' had been appliedHowever, I cannot find a way to do itI have tried to give the tags a separate class, with a ManyToManyField link into Post, but any tags that are created are not displayed - and this is probably really not the right approachSo is it possible to change the way that tags from TaggableManager is displayed? Can it be as a selection box, or check boxes or anything else? Or are we stuck with the list approach?Any advice would be gratefully receivedMany ThanksJon
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment