-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase the character limit for Ask the Botanist questions. (#532)
- Loading branch information
John G
committed
Oct 31, 2013
1 parent
f5b3d7b
commit 8931c52
Showing
3 changed files
with
167 additions
and
2 deletions.
There are no files selected for viewing
165 changes: 165 additions & 0 deletions
165
gobotany/plantshare/migrations/0037_auto__chg_field_question_question.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,165 @@ | ||
# -*- 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): | ||
|
||
# Changing field 'Question.question' | ||
db.alter_column(u'plantshare_question', 'question', self.gf('django.db.models.fields.CharField')(max_length=500)) | ||
|
||
def backwards(self, orm): | ||
|
||
# Changing field 'Question.question' | ||
db.alter_column(u'plantshare_question', 'question', self.gf('django.db.models.fields.CharField')(max_length=300)) | ||
|
||
models = { | ||
u'auth.group': { | ||
'Meta': {'object_name': 'Group'}, | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), | ||
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) | ||
}, | ||
u'auth.permission': { | ||
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, | ||
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | ||
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) | ||
}, | ||
u'auth.user': { | ||
'Meta': {'object_name': 'User'}, | ||
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), | ||
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), | ||
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), | ||
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), | ||
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), | ||
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), | ||
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), | ||
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), | ||
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) | ||
}, | ||
u'contenttypes.contenttype': { | ||
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, | ||
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | ||
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) | ||
}, | ||
u'plantshare.checklist': { | ||
'Meta': {'object_name': 'Checklist'}, | ||
'collaborators': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'checklists'", 'symmetrical': 'False', 'through': u"orm['plantshare.ChecklistCollaborator']", 'to': u"orm['plantshare.Pod']"}), | ||
'comments': ('django.db.models.fields.TextField', [], {'blank': 'True'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) | ||
}, | ||
u'plantshare.checklistcollaborator': { | ||
'Meta': {'object_name': 'ChecklistCollaborator'}, | ||
'checklist': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['plantshare.Checklist']"}), | ||
'collaborator': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['plantshare.Pod']"}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'is_owner': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) | ||
}, | ||
u'plantshare.checklistentry': { | ||
'Meta': {'object_name': 'ChecklistEntry'}, | ||
'checklist': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'entries'", 'to': u"orm['plantshare.Checklist']"}), | ||
'date_found': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), | ||
'date_posted': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'is_checked': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), | ||
'note': ('django.db.models.fields.TextField', [], {'blank': 'True'}), | ||
'plant_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | ||
'plant_photo': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['plantshare.ScreenedImage']", 'null': 'True', 'blank': 'True'}) | ||
}, | ||
u'plantshare.location': { | ||
'Meta': {'object_name': 'Location'}, | ||
'city': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True', 'blank': 'True'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'latitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), | ||
'longitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), | ||
'postal_code': ('django.db.models.fields.CharField', [], {'max_length': '12', 'null': 'True', 'blank': 'True'}), | ||
'state': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}), | ||
'street': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}), | ||
'user_input': ('django.db.models.fields.CharField', [], {'max_length': '255'}) | ||
}, | ||
u'plantshare.pod': { | ||
'Meta': {'object_name': 'Pod'}, | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'members': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'pods'", 'symmetrical': 'False', 'through': u"orm['plantshare.PodMembership']", 'to': u"orm['plantshare.UserProfile']"}), | ||
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) | ||
}, | ||
u'plantshare.podmembership': { | ||
'Meta': {'object_name': 'PodMembership'}, | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'is_owner': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'is_self_pod': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'member': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['plantshare.UserProfile']"}), | ||
'pod': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['plantshare.Pod']"}) | ||
}, | ||
u'plantshare.question': { | ||
'Meta': {'object_name': 'Question'}, | ||
'answer': ('django.db.models.fields.CharField', [], {'max_length': '3000', 'blank': 'True'}), | ||
'answered': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), | ||
'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'asked': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), | ||
'asked_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions_asked'", 'to': u"orm['auth.User']"}), | ||
'category': ('django.db.models.fields.CharField', [], {'default': "'General'", 'max_length': '120'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'images': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['plantshare.ScreenedImage']", 'null': 'True', 'blank': 'True'}), | ||
'question': ('django.db.models.fields.CharField', [], {'max_length': '500'}) | ||
}, | ||
u'plantshare.screenedimage': { | ||
'Meta': {'object_name': 'ScreenedImage'}, | ||
'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'image': ('imagekit.models.fields.ProcessedImageField', [], {'max_length': '100'}), | ||
'image_type': ('django.db.models.fields.CharField', [], {'max_length': '10', 'blank': 'True'}), | ||
'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'latitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), | ||
'longitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), | ||
'orphaned': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'screened': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), | ||
'screened_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'images_approved'", 'null': 'True', 'to': u"orm['auth.User']"}), | ||
'uploaded': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), | ||
'uploaded_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'images_uploaded'", 'to': u"orm['auth.User']"}) | ||
}, | ||
u'plantshare.sighting': { | ||
'Meta': {'ordering': "['-created']", 'object_name': 'Sighting'}, | ||
'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'created': ('django.db.models.fields.DateTimeField', [], {}), | ||
'flagged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'identification': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}), | ||
'location': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['plantshare.Location']", 'null': 'True'}), | ||
'location_notes': ('django.db.models.fields.TextField', [], {'blank': 'True'}), | ||
'notes': ('django.db.models.fields.TextField', [], {'blank': 'True'}), | ||
'photos': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['plantshare.ScreenedImage']", 'null': 'True', 'blank': 'True'}), | ||
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), | ||
'visibility': ('django.db.models.fields.CharField', [], {'default': "'PUBLIC'", 'max_length': '7'}) | ||
}, | ||
u'plantshare.userprofile': { | ||
'Meta': {'object_name': 'UserProfile'}, | ||
'avatar': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['plantshare.ScreenedImage']", 'null': 'True', 'blank': 'True'}), | ||
'details_visibility': ('django.db.models.fields.CharField', [], {'default': "'USERS'", 'max_length': '7'}), | ||
'display_name': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'location': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['plantshare.Location']", 'null': 'True', 'blank': 'True'}), | ||
'location_visibility': ('django.db.models.fields.CharField', [], {'default': "'USERS'", 'max_length': '7'}), | ||
'saying': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), | ||
'security_answer': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), | ||
'security_question': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), | ||
'user': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['auth.User']", 'unique': 'True'}), | ||
'zipcode': ('django.db.models.fields.CharField', [], {'max_length': '5', 'blank': 'True'}) | ||
} | ||
} | ||
|
||
complete_apps = ['plantshare'] |
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