Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7941867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:47:49+00:00 2026-06-03T23:47:49+00:00

In a Django project i installed the django_taggit extension. It integrates well with the

  • 0

In a Django project i installed the django_taggit extension. It integrates well with the Django admin interface. I have two problems though:

Problem A: flatchoices

I cannot show a comma-seperated tag list in the list view of my taggable model. Meaning:

# models.py
class Topic(models.Model):
    name = models.CharField(max_length=100)
    tags = TaggableManager(blank=True)

# admin.py
class TopicAdmin(admin.ModelAdmin):
    list_display = ('name', 'tags')

admin.site.register(Topic, TopicAdmin)

Throws an error:

AttributeError: 'TaggableManager' object has no attribute 'flatchoices'

Question: How can i add the functionality i need without changing the extension sources so that i am still able to do updates?

Problem B: prepopulated_fields

If i navigate to the “Add Tag” admin view i can add new tags (naturally). There are two mandatory fields: name and slug.

I want the slug to be prepoluated via prepopulated_fields = {"slug": ("name",)}, so that i do not have to type in the slug manually.

Question: How can i add the prepopulated_fields property?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:47:50+00:00Added an answer on June 3, 2026 at 11:47 pm
    1. Use official docs wisely
    2. Make your own admin class for tags (inherit it of taggit’s admin), then use:

      admin.site.unregister(Tag)
      admin.site.register(Tag, YourTagClass)
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the situation. I have a django project with two installed apps. Both
I have a Django project with two models: Applicant and Client, where Client is
I have installed django-ratings application in my django project. Am wondering how best can
Good people, I have installed djangoratings in my django project and i want to
I have django installed on my server with pymongo and mongoengine.My django project settings.py
I have installed Django, Apache2 and even mod_wsgi. With a project, I have Django
I have just installed django with python 2.7. After creating intitial project it says
I have Django installed. I also have django-admin.py in my python-2.7 folder. I can
I have a Django project which has two apps (one created as debug test).
I have Django project which uses postgresql 9. I installed psycopg2 and when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.