forked from CMSgov/regulations-core
-
Notifications
You must be signed in to change notification settings - Fork 0
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 eregs#35 from cmc333333/list-all-regs
Allow all versions of all regs to be listed
- Loading branch information
Showing
12 changed files
with
247 additions
and
52 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
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
61 changes: 61 additions & 0 deletions
61
regcore/migrations/0004_auto__add_field_regulation_root.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,61 @@ | ||
# -*- 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 field 'Regulation.root' | ||
db.add_column(u'regcore_regulation', 'root', | ||
self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True), | ||
keep_default=False) | ||
|
||
|
||
def backwards(self, orm): | ||
# Deleting field 'Regulation.root' | ||
db.delete_column(u'regcore_regulation', 'root') | ||
|
||
|
||
models = { | ||
u'regcore.diff': { | ||
'Meta': {'unique_together': "(('label', 'old_version', 'new_version'),)", 'object_name': 'Diff', 'index_together': "(('label', 'old_version', 'new_version'),)"}, | ||
'diff': ('regcore.fields.CompressedJSONField', [], {}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'label': ('django.db.models.fields.SlugField', [], {'max_length': '50'}), | ||
'new_version': ('django.db.models.fields.SlugField', [], {'max_length': '20'}), | ||
'old_version': ('django.db.models.fields.SlugField', [], {'max_length': '20'}) | ||
}, | ||
u'regcore.layer': { | ||
'Meta': {'unique_together': "(('version', 'name', 'label'),)", 'object_name': 'Layer', 'index_together': "(('version', 'name', 'label'),)"}, | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'label': ('django.db.models.fields.SlugField', [], {'max_length': '50'}), | ||
'layer': ('regcore.fields.CompressedJSONField', [], {}), | ||
'name': ('django.db.models.fields.SlugField', [], {'max_length': '20'}), | ||
'version': ('django.db.models.fields.SlugField', [], {'max_length': '20'}) | ||
}, | ||
u'regcore.notice': { | ||
'Meta': {'object_name': 'Notice'}, | ||
'cfr_part': ('django.db.models.fields.SlugField', [], {'max_length': '10'}), | ||
'document_number': ('django.db.models.fields.SlugField', [], {'max_length': '20', 'primary_key': 'True'}), | ||
'effective_on': ('django.db.models.fields.DateField', [], {'null': 'True'}), | ||
'fr_url': ('django.db.models.fields.CharField', [], {'max_length': '200'}), | ||
'notice': ('regcore.fields.CompressedJSONField', [], {}), | ||
'publication_date': ('django.db.models.fields.DateField', [], {}) | ||
}, | ||
u'regcore.regulation': { | ||
'Meta': {'unique_together': "(('version', 'label_string'),)", 'object_name': 'Regulation', 'index_together': "(('version', 'label_string'),)"}, | ||
'children': ('regcore.fields.CompressedJSONField', [], {}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'label_string': ('django.db.models.fields.SlugField', [], {'max_length': '50'}), | ||
'node_type': ('django.db.models.fields.SlugField', [], {'max_length': '10'}), | ||
'root': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}), | ||
'text': ('django.db.models.fields.TextField', [], {}), | ||
'title': ('django.db.models.fields.TextField', [], {'blank': 'True'}), | ||
'version': ('django.db.models.fields.SlugField', [], {'max_length': '20'}) | ||
} | ||
} | ||
|
||
complete_apps = ['regcore'] |
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 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
Oops, something went wrong.