Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-wiki
Commits
6f13af4d
Commit
6f13af4d
authored
Jul 19, 2014
by
benjaoming
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #289 from django-wiki/revert-272-fix_224
Revert "Fix #224"
parents
1ec4e74c
84f75080
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
wiki/plugins/notifications/south_migrations/0001_initial.py
+12
-12
wiki/south_migrations/0007_auto__add_articlesubscription.py
+12
-12
No files found.
wiki/plugins/notifications/south_migrations/0001_initial.py
View file @
6f13af4d
...
@@ -13,7 +13,7 @@ else:
...
@@ -13,7 +13,7 @@ else:
User
=
get_user_model
()
User
=
get_user_model
()
user_orm_label
=
'
%
s.
%
s'
%
(
User
.
_meta
.
app_label
,
User
.
_meta
.
object_name
)
user_orm_label
=
'
%
s.
%
s'
%
(
User
.
_meta
.
app_label
,
User
.
_meta
.
object_name
)
user_model_label
=
'
%
s.
%
s'
%
(
User
.
_meta
.
app_label
,
User
.
_meta
.
module_name
)
user_model_label
=
'
%
s.
%
s'
%
(
User
.
_meta
.
app_label
,
User
.
_meta
.
module_name
)
class
Migration
(
SchemaMigration
):
class
Migration
(
SchemaMigration
):
...
@@ -21,7 +21,7 @@ class Migration(SchemaMigration):
...
@@ -21,7 +21,7 @@ class Migration(SchemaMigration):
def
forwards
(
self
,
orm
):
def
forwards
(
self
,
orm
):
# Adding model 'ArticleSubscription'
# Adding model 'ArticleSubscription'
db
.
create_table
(
'notifications_articlesubscription'
,
(
db
.
create_table
(
'notifications_articlesubscription'
,
(
(
'subscription_ptr'
,
self
.
gf
(
'django.db.models.fields.related.OneToOneField'
)(
to
=
orm
[
'django_n
yt
.Subscription'
],
unique
=
True
)),
(
'subscription_ptr'
,
self
.
gf
(
'django.db.models.fields.related.OneToOneField'
)(
to
=
orm
[
'django_n
otify
.Subscription'
],
unique
=
True
)),
(
'articleplugin_ptr'
,
self
.
gf
(
'django.db.models.fields.related.OneToOneField'
)(
to
=
orm
[
'wiki.ArticlePlugin'
],
unique
=
True
,
primary_key
=
True
)),
(
'articleplugin_ptr'
,
self
.
gf
(
'django.db.models.fields.related.OneToOneField'
)(
to
=
orm
[
'wiki.ArticlePlugin'
],
unique
=
True
,
primary_key
=
True
)),
))
))
db
.
send_create_signal
(
'notifications'
,
[
'ArticleSubscription'
])
db
.
send_create_signal
(
'notifications'
,
[
'ArticleSubscription'
])
...
@@ -69,30 +69,30 @@ class Migration(SchemaMigration):
...
@@ -69,30 +69,30 @@ class Migration(SchemaMigration):
'model'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'100'
}),
'model'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'100'
}),
'name'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'100'
})
'name'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'100'
})
},
},
'django_n
yt
.notificationtype'
:
{
'django_n
otify
.notificationtype'
:
{
'Meta'
:
{
'object_name'
:
'NotificationType'
,
'db_table'
:
"'n
yt
_notificationtype'"
},
'Meta'
:
{
'object_name'
:
'NotificationType'
,
'db_table'
:
"'n
otify
_notificationtype'"
},
'content_type'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['contenttypes.ContentType']"
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'content_type'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['contenttypes.ContentType']"
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'key'
:
(
'django.db.models.fields.CharField'
,
[],
{
'unique'
:
'True'
,
'max_length'
:
'128'
,
'primary_key'
:
'True'
}),
'key'
:
(
'django.db.models.fields.CharField'
,
[],
{
'unique'
:
'True'
,
'max_length'
:
'128'
,
'primary_key'
:
'True'
}),
'label'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'128'
,
'null'
:
'True'
,
'blank'
:
'True'
})
'label'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'128'
,
'null'
:
'True'
,
'blank'
:
'True'
})
},
},
'django_n
yt
.settings'
:
{
'django_n
otify
.settings'
:
{
'Meta'
:
{
'object_name'
:
'Settings'
,
'db_table'
:
"'n
yt
_settings'"
},
'Meta'
:
{
'object_name'
:
'Settings'
,
'db_table'
:
"'n
otify
_settings'"
},
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'interval'
:
(
'django.db.models.fields.SmallIntegerField'
,
[],
{
'default'
:
'0'
}),
'interval'
:
(
'django.db.models.fields.SmallIntegerField'
,
[],
{
'default'
:
'0'
}),
'user'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['
%
s']"
%
user_orm_label
})
'user'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['
%
s']"
%
user_orm_label
})
},
},
'django_n
yt
.subscription'
:
{
'django_n
otify
.subscription'
:
{
'Meta'
:
{
'object_name'
:
'Subscription'
,
'db_table'
:
"'n
yt
_subscription'"
},
'Meta'
:
{
'object_name'
:
'Subscription'
,
'db_table'
:
"'n
otify
_subscription'"
},
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'notification_type'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['django_n
yt
.NotificationType']"
}),
'notification_type'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['django_n
otify
.NotificationType']"
}),
'object_id'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'64'
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'object_id'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'64'
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'send_emails'
:
(
'django.db.models.fields.BooleanField'
,
[],
{
'default'
:
'True'
}),
'send_emails'
:
(
'django.db.models.fields.BooleanField'
,
[],
{
'default'
:
'True'
}),
'settings'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['django_n
yt
.Settings']"
})
'settings'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['django_n
otify
.Settings']"
})
},
},
'notifications.articlesubscription'
:
{
'notifications.articlesubscription'
:
{
'Meta'
:
{
'object_name'
:
'ArticleSubscription'
,
'_ormbases'
:
[
'wiki.ArticlePlugin'
,
'django_n
yt
.Subscription'
]},
'Meta'
:
{
'object_name'
:
'ArticleSubscription'
,
'_ormbases'
:
[
'wiki.ArticlePlugin'
,
'django_n
otify
.Subscription'
]},
'articleplugin_ptr'
:
(
'django.db.models.fields.related.OneToOneField'
,
[],
{
'to'
:
"orm['wiki.ArticlePlugin']"
,
'unique'
:
'True'
,
'primary_key'
:
'True'
}),
'articleplugin_ptr'
:
(
'django.db.models.fields.related.OneToOneField'
,
[],
{
'to'
:
"orm['wiki.ArticlePlugin']"
,
'unique'
:
'True'
,
'primary_key'
:
'True'
}),
'subscription_ptr'
:
(
'django.db.models.fields.related.OneToOneField'
,
[],
{
'to'
:
"orm['django_n
yt
.Subscription']"
,
'unique'
:
'True'
})
'subscription_ptr'
:
(
'django.db.models.fields.related.OneToOneField'
,
[],
{
'to'
:
"orm['django_n
otify
.Subscription']"
,
'unique'
:
'True'
})
},
},
'wiki.article'
:
{
'wiki.article'
:
{
'Meta'
:
{
'object_name'
:
'Article'
},
'Meta'
:
{
'object_name'
:
'Article'
},
...
...
wiki/south_migrations/0007_auto__add_articlesubscription.py
View file @
6f13af4d
...
@@ -13,7 +13,7 @@ else:
...
@@ -13,7 +13,7 @@ else:
User
=
get_user_model
()
User
=
get_user_model
()
user_orm_label
=
'
%
s.
%
s'
%
(
User
.
_meta
.
app_label
,
User
.
_meta
.
object_name
)
user_orm_label
=
'
%
s.
%
s'
%
(
User
.
_meta
.
app_label
,
User
.
_meta
.
object_name
)
user_model_label
=
'
%
s.
%
s'
%
(
User
.
_meta
.
app_label
,
User
.
_meta
.
module_name
)
user_model_label
=
'
%
s.
%
s'
%
(
User
.
_meta
.
app_label
,
User
.
_meta
.
module_name
)
class
Migration
(
SchemaMigration
):
class
Migration
(
SchemaMigration
):
...
@@ -21,7 +21,7 @@ class Migration(SchemaMigration):
...
@@ -21,7 +21,7 @@ class Migration(SchemaMigration):
def
forwards
(
self
,
orm
):
def
forwards
(
self
,
orm
):
# Adding model 'ArticleSubscription'
# Adding model 'ArticleSubscription'
db
.
create_table
(
'wiki_articlesubscription'
,
(
db
.
create_table
(
'wiki_articlesubscription'
,
(
(
'subscription_ptr'
,
self
.
gf
(
'django.db.models.fields.related.OneToOneField'
)(
to
=
orm
[
'django_n
yt
.Subscription'
],
unique
=
True
)),
(
'subscription_ptr'
,
self
.
gf
(
'django.db.models.fields.related.OneToOneField'
)(
to
=
orm
[
'django_n
otify
.Subscription'
],
unique
=
True
)),
(
'articleplugin_ptr'
,
self
.
gf
(
'django.db.models.fields.related.OneToOneField'
)(
to
=
orm
[
'wiki.ArticlePlugin'
],
unique
=
True
,
primary_key
=
True
)),
(
'articleplugin_ptr'
,
self
.
gf
(
'django.db.models.fields.related.OneToOneField'
)(
to
=
orm
[
'wiki.ArticlePlugin'
],
unique
=
True
,
primary_key
=
True
)),
))
))
db
.
send_create_signal
(
'wiki'
,
[
'ArticleSubscription'
])
db
.
send_create_signal
(
'wiki'
,
[
'ArticleSubscription'
])
...
@@ -69,25 +69,25 @@ class Migration(SchemaMigration):
...
@@ -69,25 +69,25 @@ class Migration(SchemaMigration):
'model'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'100'
}),
'model'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'100'
}),
'name'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'100'
})
'name'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'100'
})
},
},
'django_n
yt
.notificationtype'
:
{
'django_n
otify
.notificationtype'
:
{
'Meta'
:
{
'object_name'
:
'NotificationType'
,
'db_table'
:
"'n
yt
_notificationtype'"
},
'Meta'
:
{
'object_name'
:
'NotificationType'
,
'db_table'
:
"'n
otify
_notificationtype'"
},
'content_type'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['contenttypes.ContentType']"
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'content_type'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['contenttypes.ContentType']"
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'key'
:
(
'django.db.models.fields.CharField'
,
[],
{
'unique'
:
'True'
,
'max_length'
:
'128'
,
'primary_key'
:
'True'
}),
'key'
:
(
'django.db.models.fields.CharField'
,
[],
{
'unique'
:
'True'
,
'max_length'
:
'128'
,
'primary_key'
:
'True'
}),
'label'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'128'
,
'null'
:
'True'
,
'blank'
:
'True'
})
'label'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'128'
,
'null'
:
'True'
,
'blank'
:
'True'
})
},
},
'django_n
yt
.settings'
:
{
'django_n
otify
.settings'
:
{
'Meta'
:
{
'object_name'
:
'Settings'
,
'db_table'
:
"'n
yt
_settings'"
},
'Meta'
:
{
'object_name'
:
'Settings'
,
'db_table'
:
"'n
otify
_settings'"
},
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'interval'
:
(
'django.db.models.fields.SmallIntegerField'
,
[],
{
'default'
:
'0'
}),
'interval'
:
(
'django.db.models.fields.SmallIntegerField'
,
[],
{
'default'
:
'0'
}),
'user'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['
%
s']"
%
user_orm_label
})
'user'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['
%
s']"
%
user_orm_label
})
},
},
'django_n
yt
.subscription'
:
{
'django_n
otify
.subscription'
:
{
'Meta'
:
{
'object_name'
:
'Subscription'
,
'db_table'
:
"'n
yt
_subscription'"
},
'Meta'
:
{
'object_name'
:
'Subscription'
,
'db_table'
:
"'n
otify
_subscription'"
},
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'notification_type'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['django_n
yt
.NotificationType']"
}),
'notification_type'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['django_n
otify
.NotificationType']"
}),
'object_id'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'64'
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'object_id'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'64'
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'send_emails'
:
(
'django.db.models.fields.BooleanField'
,
[],
{
'default'
:
'True'
}),
'send_emails'
:
(
'django.db.models.fields.BooleanField'
,
[],
{
'default'
:
'True'
}),
'settings'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['django_n
yt
.Settings']"
})
'settings'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['django_n
otify
.Settings']"
})
},
},
'sites.site'
:
{
'sites.site'
:
{
'Meta'
:
{
'ordering'
:
"('domain',)"
,
'object_name'
:
'Site'
,
'db_table'
:
"'django_site'"
},
'Meta'
:
{
'ordering'
:
"('domain',)"
,
'object_name'
:
'Site'
,
'db_table'
:
"'django_site'"
},
...
@@ -142,9 +142,9 @@ class Migration(SchemaMigration):
...
@@ -142,9 +142,9 @@ class Migration(SchemaMigration):
'user_message'
:
(
'django.db.models.fields.TextField'
,
[],
{
'blank'
:
'True'
})
'user_message'
:
(
'django.db.models.fields.TextField'
,
[],
{
'blank'
:
'True'
})
},
},
'wiki.articlesubscription'
:
{
'wiki.articlesubscription'
:
{
'Meta'
:
{
'object_name'
:
'ArticleSubscription'
,
'_ormbases'
:
[
'wiki.ArticlePlugin'
,
'django_n
yt
.Subscription'
]},
'Meta'
:
{
'object_name'
:
'ArticleSubscription'
,
'_ormbases'
:
[
'wiki.ArticlePlugin'
,
'django_n
otify
.Subscription'
]},
'articleplugin_ptr'
:
(
'django.db.models.fields.related.OneToOneField'
,
[],
{
'to'
:
"orm['wiki.ArticlePlugin']"
,
'unique'
:
'True'
,
'primary_key'
:
'True'
}),
'articleplugin_ptr'
:
(
'django.db.models.fields.related.OneToOneField'
,
[],
{
'to'
:
"orm['wiki.ArticlePlugin']"
,
'unique'
:
'True'
,
'primary_key'
:
'True'
}),
'subscription_ptr'
:
(
'django.db.models.fields.related.OneToOneField'
,
[],
{
'to'
:
"orm['django_n
yt
.Subscription']"
,
'unique'
:
'True'
})
'subscription_ptr'
:
(
'django.db.models.fields.related.OneToOneField'
,
[],
{
'to'
:
"orm['django_n
otify
.Subscription']"
,
'unique'
:
'True'
})
},
},
'wiki.attachment'
:
{
'wiki.attachment'
:
{
'Meta'
:
{
'object_name'
:
'Attachment'
,
'_ormbases'
:
[
'wiki.ReusablePlugin'
]},
'Meta'
:
{
'object_name'
:
'Attachment'
,
'_ormbases'
:
[
'wiki.ReusablePlugin'
]},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment