- Opublikowano May 19, 2010
- Tagi: django moderation my-projects
Today i have released new version of django-moderation - 0.2. It has been uploaded in to pypi, so now it can be installed with easy_install.
Many bugs were fixed and many new features were added since initial release.
List of changes
-
Added GenericModerator class that encapsulates moderation options for a given
model.Changed register method, it will get only two parameters: model class
and settings class.
-
Added option to register models with multiple managers.
-
Added options to GenericModerator class: auto_approve_for_superusers ...
- Opublikowano March 11, 2010
- Tagi: django models moderation
django-moderation is reusable application for Django framework, that allows to
moderate any model objects.
Code can be found at http://github.com/dominno/django-moderation
Possible use cases:
-
User creates his profile, profile is not visible on site.
It will be visible on site when moderator approves it.
-
User changes his profile, old profile data is visible on site.
New data will be visible on site when moderator approves it.
Features:
-
configurable admin integration(data changed in admin can be visible ...
- Opublikowano February 15, 2010
- Tagi: pep8 python
Jakiś czas temu pisałem o skrypcie który sprawdza zgodność kodu Pythona z PEP8.
Jednak podczas pracy nad kilkoma projektami zauważyłem, że nie chciało mi się za każdym razem ręcznie uruchamiać tego skryptu na całym projekcie. Sprowadzało się do tego że uruchamiałem go gdy projekt był już skończony. Prowadziło do tego że nie byłem w stanie czasowo wprowadzić wszystkich poprawek, bo było ich bardzo dużo.
Niby wydawało by się że wystarczy raz czy dwa przeczytać dokument PEP8 i przy pisaniu kodu ...