-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tags Issue #285
Comments
Hey Jeff, I pulled the branch and immediately had to deal with db migration issues. It appears that your through model might have had a conflict with a field/table that already existed. I tried to troubleshoot the migration but as my db only has test data I decided to blow away(delete) my db and run migrations again to rebuild. After I did that your code worked fine. Tags weren't rendered in your list (displayed None) due to the syntax which you would've figured out anyway. You can fix that by rendering m2ms in the list.html template like so:
Let me know if this helps. I believe you already had some scripts created to repopulate your db data so hopefully rebuilding the db is an option for you. If not, you will need to figure out which migration operation caused things to go ary and nuke it by commenting it out. This is a bit of an iterative process with the side-effect of getting a good grasp on how Django orm migrations work. |
Thanks! What threw me on the tags not displaying it that they also don't show up in the Django admin as associated in any way with a RepertoireTune, so I assumed the None in the template was just that, a None. As for the database migrations, I ran into issues when I tried to use django-taggit and then opted not to. In the process of getting things working I ended up deleting all my migration files... how bad does that leave me in trying to resolve this? Interestingly the production database is running fine despite having deployments since then-- |
The text was updated successfully, but these errors were encountered: