forked from nanvel/django-nicedit
-
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.
django 1.7 compatibility, removed south
- Loading branch information
Showing
21 changed files
with
106 additions
and
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
__version__ = '0.24' | ||
__version__ = '1.1' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
import datetime | ||
from south.db import db | ||
from south.v2 import SchemaMigration | ||
from django.db import models | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
class Migration(SchemaMigration): | ||
|
||
def forwards(self, orm): | ||
pass | ||
class Migration(migrations.Migration): | ||
|
||
def backwards(self, orm): | ||
pass | ||
dependencies = [ | ||
] | ||
|
||
models = { | ||
|
||
} | ||
|
||
complete_apps = ['nicedit'] | ||
operations = [ | ||
] |
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,32 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
import datetime | ||
from south.db import db | ||
from south.v2 import SchemaMigration | ||
from django.db import models | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
class Migration(SchemaMigration): | ||
|
||
def forwards(self, orm): | ||
# Adding model 'NicEditImage' | ||
db.create_table(u'nicedit_niceditimage', ( | ||
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | ||
('image', self.gf('django.db.models.fields.files.ImageField')(max_length=100)), | ||
)) | ||
db.send_create_signal(u'nicedit', ['NicEditImage']) | ||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('nicedit', '0001_initial'), | ||
] | ||
|
||
def backwards(self, orm): | ||
# Deleting model 'NicEditImage' | ||
db.delete_table(u'nicedit_niceditimage') | ||
|
||
|
||
models = { | ||
u'nicedit.niceditimage': { | ||
'Meta': {'object_name': 'NicEditImage'}, | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}) | ||
} | ||
} | ||
|
||
complete_apps = ['nicedit'] | ||
operations = [ | ||
migrations.CreateModel( | ||
name='NicEditImage', | ||
fields=[ | ||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), | ||
('image', models.ImageField(upload_to=b'nicedit/%Y/%m/%d')), | ||
], | ||
options={ | ||
}, | ||
bases=(models.Model,), | ||
), | ||
] |
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,5 +1,8 @@ | ||
from django.db import models | ||
|
||
|
||
__all__ = ('NicEditImage',) | ||
|
||
|
||
class NicEditImage(models.Model): | ||
image = models.ImageField(upload_to='nicedit/%Y/%m/%d') |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
from .test_image_upload import * |
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,6 +1,10 @@ | ||
from django.conf.urls import patterns, url | ||
|
||
|
||
urlpatterns = patterns('nicedit.views', | ||
__all__ = ('urlpatterns',) | ||
|
||
|
||
urlpatterns = patterns( | ||
'nicedit.views', | ||
url(r'^upload/$', 'upload', name='nicedit_upload'), | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,14 +48,13 @@ def read(fname): | |
license='The MIT License', | ||
platforms=['OS Independent'], | ||
keywords='django, nicedit, widget, rte', | ||
author='Oleksandr Polyeno', | ||
author='Oleksandr Polieno', | ||
author_email='[email protected]', | ||
url="https://github.com/nanvel/django-nicedit", | ||
packages=find_packages(), | ||
include_package_data=True, | ||
install_requires=[ | ||
'django<1.7', | ||
'South', | ||
'Django>=1.7,<1.8', | ||
'Pillow' | ||
], | ||
) |
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,3 +1,2 @@ | ||
Django>=1.4,<1.7 | ||
South | ||
Django>=1.7,<1.8 | ||
Pillow |
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,3 +1,2 @@ | ||
Django==1.6 | ||
South | ||
PIL | ||
Django>=1.7,<1.8 | ||
Pillow |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
from django.db import models | ||
|
||
|
||
__all__ = ('Message',) | ||
|
||
|
||
class Message(models.Model): | ||
content = models.TextField() |
Oops, something went wrong.