forked from Glamping-Hub/django-painless-seo
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c371224
commit f69064a
Showing
6 changed files
with
64 additions
and
235 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 was deleted.
Oops, something went wrong.
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,72 +1,52 @@ | ||
# -*- 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 model 'SeoRegisteredModel' | ||
db.create_table(u'painlessseo_seoregisteredmodel', ( | ||
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | ||
('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'], null=True, blank=True)), | ||
('lang_code', self.gf('django.db.models.fields.CharField')(default='en', max_length=2)), | ||
('title', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)), | ||
('description', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)), | ||
)) | ||
db.send_create_signal(u'painlessseo', ['SeoRegisteredModel']) | ||
|
||
# Adding model 'SeoMetadata' | ||
db.create_table(u'painlessseo_seometadata', ( | ||
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | ||
('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'], null=True, blank=True)), | ||
('object_id', self.gf('django.db.models.fields.PositiveIntegerField')(null=True, blank=True)), | ||
('lang_code', self.gf('django.db.models.fields.CharField')(default='en', max_length=2)), | ||
('has_parameters', self.gf('django.db.models.fields.BooleanField')(default=False)), | ||
('path', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, db_index=True)), | ||
('title', self.gf('django.db.models.fields.CharField')(max_length=100, null=True)), | ||
('description', self.gf('django.db.models.fields.CharField')(max_length=200, null=True)), | ||
)) | ||
db.send_create_signal(u'painlessseo', ['SeoMetadata']) | ||
|
||
|
||
def backwards(self, orm): | ||
# Deleting model 'SeoRegisteredModel' | ||
db.delete_table(u'painlessseo_seoregisteredmodel') | ||
|
||
# Deleting model 'SeoMetadata' | ||
db.delete_table(u'painlessseo_seometadata') | ||
|
||
|
||
models = { | ||
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'painlessseo.seometadata': { | ||
'Meta': {'ordering': "('path', 'lang_code')", 'object_name': 'SeoMetadata'}, | ||
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}), | ||
'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True'}), | ||
'has_parameters': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'lang_code': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '2'}), | ||
'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}), | ||
'path': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'db_index': 'True'}), | ||
'title': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}) | ||
}, | ||
u'painlessseo.seoregisteredmodel': { | ||
'Meta': {'object_name': 'SeoRegisteredModel'}, | ||
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}), | ||
'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'lang_code': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '2'}), | ||
'title': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}) | ||
} | ||
} | ||
|
||
complete_apps = ['painlessseo'] | ||
# Generated by Django 1.9.6 on 2016-05-31 13:46 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('contenttypes', '0002_remove_content_type_name'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='SeoMetadata', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('view_name', models.CharField(blank=True, max_length=30, null=True, verbose_name='View Name')), | ||
('object_id', models.PositiveIntegerField(blank=True, null=True, verbose_name='Id')), | ||
('lang_code', models.CharField(choices=[(b'en', b'English')], default=b'en', max_length=2, verbose_name='Language')), | ||
('has_parameters', models.BooleanField(default=False, help_text='This indicates if the SEOMetadata path contains parameters.')), | ||
('path', models.CharField(db_index=True, help_text="This should be an absolute path, excluding the domain name. Example: '/foo/bar/'. You can also capture parameters using '{X}' notation, where X is a positive number.", max_length=200, null=True, verbose_name='Path')), | ||
('title', models.CharField(help_text="Here you can make use of the parameters captured in the URL using the same '{X}' notation.", max_length=100, null=True, verbose_name='Title')), | ||
('description', models.CharField(help_text="Here you can make use of the parameters captured in the URL using the same '{X}' notation.", max_length=200, null=True, verbose_name='Description')), | ||
('priority', models.IntegerField(default=0, help_text='Priority when duplicated. Higher the most priority. Default 0', verbose_name='Priority')), | ||
('content_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType', verbose_name='Model')), | ||
], | ||
options={ | ||
'ordering': ('path', 'lang_code'), | ||
'verbose_name': 'SEO Path Metadata', | ||
'verbose_name_plural': 'SEO Path Metadata', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='SeoRegisteredModel', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('lang_code', models.CharField(choices=[(b'en', b'English')], default=b'en', max_length=2, verbose_name='Language')), | ||
('title', models.CharField(blank=True, max_length=100, null=True, verbose_name='Title')), | ||
('description', models.CharField(blank=True, max_length=200, null=True, verbose_name='Description')), | ||
('content_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), | ||
], | ||
options={ | ||
'verbose_name': 'SEO Model', | ||
'verbose_name_plural': 'SEO Models', | ||
}, | ||
), | ||
] |
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
painlessseo/migrations/0003_auto__add_field_seometadata_priority.py
This file was deleted.
Oops, something went wrong.
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