Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
c94f8d6f
Commit
c94f8d6f
authored
May 20, 2013
by
e0d
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2089 from edx/bugfix/e0d/resize-notes-uri
actually needs to be 255 given unicode requirements
parents
f63a4432
a7b02e00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lms/djangoapps/notes/migrations/0001_initial.py
+2
-2
lms/djangoapps/notes/models.py
+1
-1
No files found.
lms/djangoapps/notes/migrations/0001_initial.py
View file @
c94f8d6f
...
...
@@ -13,7 +13,7 @@ class Migration(SchemaMigration):
(
'id'
,
self
.
gf
(
'django.db.models.fields.AutoField'
)(
primary_key
=
True
)),
(
'user'
,
self
.
gf
(
'django.db.models.fields.related.ForeignKey'
)(
to
=
orm
[
'auth.User'
])),
(
'course_id'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
255
,
db_index
=
True
)),
(
'uri'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
512
,
db_index
=
True
)),
(
'uri'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
255
,
db_index
=
True
)),
(
'text'
,
self
.
gf
(
'django.db.models.fields.TextField'
)(
default
=
''
)),
(
'quote'
,
self
.
gf
(
'django.db.models.fields.TextField'
)(
default
=
''
)),
(
'range_start'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
2048
)),
...
...
@@ -82,7 +82,7 @@ class Migration(SchemaMigration):
'tags'
:
(
'django.db.models.fields.TextField'
,
[],
{
'default'
:
"''"
}),
'text'
:
(
'django.db.models.fields.TextField'
,
[],
{
'default'
:
"''"
}),
'updated'
:
(
'django.db.models.fields.DateTimeField'
,
[],
{
'auto_now'
:
'True'
,
'db_index'
:
'True'
,
'blank'
:
'True'
}),
'uri'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'
512
'
,
'db_index'
:
'True'
}),
'uri'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'
255
'
,
'db_index'
:
'True'
}),
'user'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
"orm['auth.User']"
})
}
}
...
...
lms/djangoapps/notes/models.py
View file @
c94f8d6f
...
...
@@ -9,7 +9,7 @@ import json
class
Note
(
models
.
Model
):
user
=
models
.
ForeignKey
(
User
,
db_index
=
True
)
course_id
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
uri
=
models
.
CharField
(
max_length
=
512
,
db_index
=
True
)
uri
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
text
=
models
.
TextField
(
default
=
""
)
quote
=
models
.
TextField
(
default
=
""
)
range_start
=
models
.
CharField
(
max_length
=
2048
)
# xpath string
...
...
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