Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Migration should default things to approved, not pending.

Also cleaned up auto-generated migration.
  • Loading branch information...
commit 006c2ca9419f54831c93a851ef29f02b82269e2d 1 parent 604e6ff
@justinabrahms justinabrahms authored
View
8 django_website/aggregator/migrations/0004_add_approval_status_field.py
@@ -7,17 +7,13 @@
class Migration(SchemaMigration):
def forwards(self, orm):
-
- # Adding field 'Feed.approval_status'
- db.add_column('aggregator_feed', 'approval_status', self.gf('django.db.models.fields.CharField')(default='P', max_length=1), keep_default=False)
+ # Create approval status field. All feeds default to approved.
+ db.add_column('aggregator_feed', 'approval_status', self.gf('django.db.models.fields.CharField')(default='A', max_length=1), keep_default=False)
def backwards(self, orm):
-
- # Deleting field 'Feed.approval_status'
db.delete_column('aggregator_feed', 'approval_status')
-
models = {
'aggregator.feed': {
'Meta': {'object_name': 'Feed'},
Please sign in to comment.
Something went wrong with that request. Please try again.