This repository was archived by the owner on Apr 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Update for django 1.8 #44
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a09372d
Use more modern versions of some requirements
meshy d418d4d
Remove incorrect comment in test runner
meshy 9579e39
Add migrations for base apps
meshy d0704b1
Run travis tests against django 1.8
meshy 62569f9
Add fields missing from test as of django 1.8
meshy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,27 @@ | ||
| # -*- coding: utf-8 -*- | ||
| from __future__ import unicode_literals | ||
|
|
||
| from django.db import models, migrations | ||
| import sirtrevor.fields | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('routes', '0001_initial'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.CreateModel( | ||
| name='Page', | ||
| fields=[ | ||
| ('route_ptr', models.OneToOneField(serialize=False, auto_created=True, parent_link=True, primary_key=True, to='routes.Route')), | ||
| ('content', sirtrevor.fields.SirTrevorField(default='')), | ||
| ], | ||
| options={ | ||
| 'ordering': ('tree_id', 'lft'), | ||
| 'abstract': False, | ||
| }, | ||
| bases=('routes.route',), | ||
| ), | ||
| ] |
Empty file.
This file contains hidden or 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,27 @@ | ||
| # -*- coding: utf-8 -*- | ||
| from __future__ import unicode_literals | ||
|
|
||
| from django.db import models, migrations | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('routes', '0001_initial'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.CreateModel( | ||
| name='RouteRedirect', | ||
| fields=[ | ||
| ('route_ptr', models.OneToOneField(serialize=False, auto_created=True, to='routes.Route', parent_link=True, primary_key=True)), | ||
| ('permanent', models.BooleanField(default=False)), | ||
| ('target', models.ForeignKey(to='routes.Route', related_name='+')), | ||
| ], | ||
| options={ | ||
| 'ordering': ('tree_id', 'lft'), | ||
| 'abstract': False, | ||
| }, | ||
| bases=('routes.route',), | ||
| ), | ||
| ] |
Empty file.
This file contains hidden or 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,33 @@ | ||
| # -*- coding: utf-8 -*- | ||
| from __future__ import unicode_literals | ||
|
|
||
| from django.db import models, migrations | ||
| import polymorphic_tree.models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('contenttypes', '0002_remove_content_type_name'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.CreateModel( | ||
| name='Route', | ||
| fields=[ | ||
| ('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)), | ||
| ('slug', models.SlugField(help_text='\n Used to create the location of the Route. The Root Route needs\n "slug" to be blank; all other Routes need a value unique to the parent.\n It can only contain letters, numbers, underscores, or hyphens.\n ', default='', max_length=255)), | ||
| ('url', models.TextField(unique=True, editable=False, db_index=True)), | ||
| ('lft', models.PositiveIntegerField(editable=False, db_index=True)), | ||
| ('rght', models.PositiveIntegerField(editable=False, db_index=True)), | ||
| ('tree_id', models.PositiveIntegerField(editable=False, db_index=True)), | ||
| ('level', models.PositiveIntegerField(editable=False, db_index=True)), | ||
| ('parent', polymorphic_tree.models.PolymorphicTreeForeignKey(null=True, related_name='children', blank=True, to='routes.Route')), | ||
| ('polymorphic_ctype', models.ForeignKey(null=True, related_name='polymorphic_routes.route_set+', editable=False, to='contenttypes.ContentType')), | ||
| ], | ||
| ), | ||
| migrations.AlterUniqueTogether( | ||
| name='route', | ||
| unique_together=set([('parent', 'slug')]), | ||
| ), | ||
| ] | ||
Empty file.
This file contains hidden or 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 hidden or 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 hidden or 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,5 +1,5 @@ | ||
| -e .. | ||
|
|
||
| dj-database-url==0.3 | ||
| django==1.7.0 | ||
| psycopg2==2.5.4 | ||
| django==1.8.3 | ||
| psycopg2==2.6.1 |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure the
slug.help_textis correctly defined. Perhaps it should be usingtextwrap.dedent?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think you're right, this is odd. Really, it should just be one line, as that's how I am expecting it to appear in the admin.
#48