diff options
author | hardythe1 | 2012-03-21 19:11:15 +0530 |
---|---|---|
committer | hardythe1 | 2012-03-21 19:11:15 +0530 |
commit | 4884af693bfb0b9bb70ed6b3d8489267a86d90f9 (patch) | |
tree | faa7db2d6e00b4f52640d990305b44c621af52d0 | |
parent | d6b315e816525ee114a22e1c66a35b5e30e86258 (diff) | |
download | online_test-4884af693bfb0b9bb70ed6b3d8489267a86d90f9.tar.gz online_test-4884af693bfb0b9bb70ed6b3d8489267a86d90f9.tar.bz2 online_test-4884af693bfb0b9bb70ed6b3d8489267a86d90f9.zip |
implemented tagging functionality
-rw-r--r-- | buildout.cfg | 3 | ||||
-rw-r--r-- | testapp/exam/models.py | 3 | ||||
-rw-r--r-- | testapp/urls.py | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/buildout.cfg b/buildout.cfg index c04ec59..db1c35d 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -3,6 +3,8 @@ parts = django eggs = South + django-taggit + django-taggit-autocomplete-modified [versions] django = 1.3 @@ -17,3 +19,4 @@ eggs = ${buildout:eggs} extra-paths = testapp + diff --git a/testapp/exam/models.py b/testapp/exam/models.py index 4931e44..689e931 100644 --- a/testapp/exam/models.py +++ b/testapp/exam/models.py @@ -1,7 +1,8 @@ import datetime from django.db import models from django.contrib.auth.models import User -from taggit.managers import TaggableManager +from taggit_autocomplete_modified.managers import TaggableManagerAutocomplete as TaggableManager + ################################################################################ class Profile(models.Model): """Profile for a user to store roll number and other details.""" diff --git a/testapp/urls.py b/testapp/urls.py index 4fce4ea..99d69c2 100644 --- a/testapp/urls.py +++ b/testapp/urls.py @@ -22,3 +22,7 @@ urlpatterns = patterns('', url(ADMIN_BASE, include(admin.site.urls)), ) + +urlpatterns += patterns('', + url(r'^taggit_autocomplete_modified/', include('taggit_autocomplete_modified.urls')), +) |