dlamotte / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

alter table thing for tips wiki #150

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I would post this to the list, but it doesn't exist yet.

"""
after adding django-tagging to your app (install, INSTALLED_APPS+=tagging,
manage.py syncdb), to add tagging to an existing model:

# models.py 
from tagging.fields import TagField
class Wine(models.Model):
    ...
    tags = TagField()

alter table core_wine add "tags" varchar(255) NOT NULL default '';
"""
The alter command is really the point - the rest just gives it context.

Original issue reported on code.google.com by cfkars...@gmail.com on 14 Aug 2008 at 3:30