-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from grapesmoker/unicode_searches
Unicode searches
- Loading branch information
Showing
8 changed files
with
148 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
from django.contrib import admin | ||
from core.search.models import SearchableTool | ||
from core.search.models import SuggestedSearchResult | ||
|
||
admin.site.register(SearchableTool) | ||
admin.site.register(SuggestedSearchResult) |
43 changes: 43 additions & 0 deletions
43
core/search/migrations/0002_add_model_SuggestedSearchResult.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# -*- coding: utf-8 -*- | ||
import datetime | ||
from south.db import db | ||
from south.v2 import SchemaMigration | ||
from django.db import models | ||
|
||
|
||
class Migration(SchemaMigration): | ||
|
||
def forwards(self, orm): | ||
# Adding model 'SuggestedSearchResult' | ||
db.create_table(u'search_suggestedsearchresult', ( | ||
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | ||
('search_term', self.gf('django.db.models.fields.CharField')(max_length=255)), | ||
('suggested_url', self.gf('django.db.models.fields.URLField')(max_length=200)), | ||
('description', self.gf('django.db.models.fields.TextField')()), | ||
)) | ||
db.send_create_signal(u'search', ['SuggestedSearchResult']) | ||
|
||
|
||
def backwards(self, orm): | ||
# Deleting model 'SuggestedSearchResult' | ||
db.delete_table(u'search_suggestedsearchresult') | ||
|
||
|
||
models = { | ||
u'search.searchabletool': { | ||
'Meta': {'object_name': 'SearchableTool'}, | ||
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'link': ('django.db.models.fields.CharField', [], {'max_length': '2048'}), | ||
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}) | ||
}, | ||
u'search.suggestedsearchresult': { | ||
'Meta': {'object_name': 'SuggestedSearchResult'}, | ||
'description': ('django.db.models.fields.TextField', [], {}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'search_term': ('django.db.models.fields.CharField', [], {'max_length': '255'}), | ||
'suggested_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}) | ||
} | ||
} | ||
|
||
complete_apps = ['search'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.