Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Lift out a new add-on "aldryn-reversion", which is now in a separate …
Browse files Browse the repository at this point in the history
…repo
  • Loading branch information
mkoistinen committed Feb 25, 2015
1 parent 1a46e2e commit f60f3da
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 303 deletions.
14 changes: 7 additions & 7 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL DIVIO AG BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
DISCLAIMED. IN NO EVENT SHALL DIVIO AG BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19 changes: 18 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
|PyPI Version| |Build Status| |Coverage Status|

===============
Aldryn Newsblog
===============

Expand All @@ -13,6 +14,7 @@ Aldryn NewsBlog is intended to serve as a model of good practice for development
of django CMS and Aldryn applications.


--------------------
Installation & Usage
--------------------

Expand All @@ -32,14 +34,26 @@ Aldryn Platform Users
Manual Installation
~~~~~~~~~~~~~~~~~~~

1) Run `pip install aldryn-newsblog`.
1) Run `pip install aldryn-newsblog`. Also note that a number of other packages
may need to be installed if they are not already: ::

aldryn-categories
aldryn-people
aldryn-reversion
djangocms-text-ckeditor
easy_thumbnails
django-filer
django-parler
django-reversion
taggit

2) Add below apps to ``INSTALLED_APPS``: ::

INSTALLED_APPS = [
'aldryn_categories',
'aldryn_people',
'aldryn_reversion',
'djangocms_text_ckeditor',
'easy_thumbnails',
'filer',
Expand Down Expand Up @@ -68,6 +82,7 @@ Manual Installation

4) (Re-)Start your application server.

------------------
Available settings
------------------

Expand All @@ -76,6 +91,8 @@ Available settings
* ``ALDRYN_NEWSBLOG_PAGINATE_BY`` - the number of objects to show per page.
Default value: ``10``.


-----
Notes
-----

Expand Down
2 changes: 1 addition & 1 deletion aldryn_newsblog/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from aldryn_apphooks_config.admin import BaseAppHookConfig
from aldryn_people.models import Person
from aldryn_reversion.admin import VersionedPlaceholderAdminMixin

from .versioning.admin import VersionedPlaceholderAdminMixin
from . import models


Expand Down
8 changes: 4 additions & 4 deletions aldryn_newsblog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
from django.utils.translation import get_language, ugettext_lazy as _
from django.contrib.auth.models import User

from aldryn_categories.fields import CategoryManyToManyField
from aldryn_people.models import Person
from aldryn_reversion.core import version_controlled_content
from cms.models.fields import PlaceholderField
from cms.models.pluginmodel import CMSPlugin
from aldryn_people.models import Person
from djangocms_text_ckeditor.fields import HTMLField
from filer.fields.image import FilerImageField
from parler.models import TranslatableModel, TranslatedFields
from aldryn_categories.fields import CategoryManyToManyField
from taggit.managers import TaggableManager
from djangocms_text_ckeditor.fields import HTMLField

from .cms_appconfig import NewsBlogConfig
from .versioning import version_controlled_content
from .managers import RelatedManager


Expand Down
40 changes: 0 additions & 40 deletions aldryn_newsblog/templates/reversion/confirm_reversion.html

This file was deleted.

2 changes: 1 addition & 1 deletion aldryn_newsblog/tests/test_aldryn_newsblog.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from aldryn_search.helpers import get_request

from aldryn_newsblog.models import Article, NewsBlogConfig
from aldryn_newsblog.versioning import create_revision_with_placeholders
from aldryn_reversion.core import create_revision_with_placeholders

from . import TESTS_STATIC_ROOT

Expand Down
125 changes: 0 additions & 125 deletions aldryn_newsblog/versioning/__init__.py

This file was deleted.

Loading

0 comments on commit f60f3da

Please sign in to comment.