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

  • SEARCH
  • Home
  • 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 3692856
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:18:37+00:00 2026-05-19T04:18:37+00:00

So I am currently implementing a new tagging system for on top of an

  • 0

So I am currently implementing a new tagging system for on top of an already existing database.

The current tagging system makes use of a ManyToMany field, however the client would like to have a comma delimited input field (CharField).

So I figured best way to do it, without jeopardizing the current architecture is to enable the new comma delimited field, but write away the tags as the previously ManyToMany architecture.

But however i try to do it, the tags get saved into the database tag model, but not on the entry on which they should apply.

Simple rundown:

 def save(self, *args, **kwargs):

    currTags = self.placeHolderTags.split(",") 

    for tag in currTags:
        dbtag, created = Tag.objects.get_or_create(name=tag)
        self.tags.add(dbtag)

    super(BeeldBankEntry, self).save(*args, **kwargs)

further model background:

tags            =   models.ManyToManyField(Tag, verbose_name='Tags', blank=True)
placeHolderTags =   models.CharField(max_length=400, verbose_name='Tags2', blank=True)
  • 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-05-19T04:18:37+00:00Added an answer on May 19, 2026 at 4:18 am

    This is due to django saving m2m fields AFTER model itself. I’m not sure if saving before your code in save() would help, take a look at m2m_changed signal – it looks like just what you need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're currently looking at implementing Facebooks new subscription payments . We already have a
I'm currently working on implementing a logging system for a new Hadoop cluster I've
I'm currently poking around with a new archive format and was interested in implementing
We are currently implementing MOSS 2007 to replace an older portal system (Plumtree) and
At my current job, we are currently implementing UML and RUP for the day
I'm currently implementing a new functionality to a tool in an e-learning platform. I
I'm currently implementing uml validation http://msdn.microsoft.com/en-us/library/ee329482.aspx , when i debug, it opens a new
We are currently implementing a new WCF REST service in IIS for our site
We have to automate database updation couple of times a month. My current use
Hi i am currently implementing an email system for a customer in php. I'm

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.