This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
forked from ofri/Open-Knesset
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix some problems with okhelptexts - make the keyword unique + fix di…
…splay of question mark in bill page
- Loading branch information
Showing
3 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
okhelptexts/migrations/0003_auto__add_unique_keyword_kw_text.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,35 @@ | ||
# -*- coding: utf-8 -*- | ||
from south.utils import datetime_utils as datetime | ||
from south.db import db | ||
from south.v2 import SchemaMigration | ||
from django.db import models | ||
|
||
|
||
class Migration(SchemaMigration): | ||
|
||
def forwards(self, orm): | ||
# Adding unique constraint on 'Keyword', fields ['kw_text'] | ||
db.create_unique(u'okhelptexts_keyword', ['kw_text']) | ||
|
||
|
||
def backwards(self, orm): | ||
# Removing unique constraint on 'Keyword', fields ['kw_text'] | ||
db.delete_unique(u'okhelptexts_keyword', ['kw_text']) | ||
|
||
|
||
models = { | ||
u'okhelptexts.helptext': { | ||
'Meta': {'object_name': 'Helptext'}, | ||
'fulltext': ('django.db.models.fields.TextField', [], {}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'moreinfo': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200', 'blank': 'True'}) | ||
}, | ||
u'okhelptexts.keyword': { | ||
'Meta': {'object_name': 'Keyword'}, | ||
'helptext': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['okhelptexts.Helptext']"}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'kw_text': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}) | ||
} | ||
} | ||
|
||
complete_apps = ['okhelptexts'] |
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