Changes
========
+1.6
+++++
+
+*
+
1.5.1
++++++
Changelog:
-* Installation have been dratiscally simplified with the help of **Docker**.
+* Installation method have been dratiscally simplified with the help of **Docker**.
- One month after the publication of docker-compose, we have managed to build a composition which bundle all the dependencies, even for a production use case. From development tasks to testing and deployment, we provide now a DevBox that is compatible with all platforms.
+ One month after the publication of docker-compose, we have managed to build a composition which bundles all the dependencies of Telemeta and TimeSide. For development tasks, testing and even deployment in production use cases, we provide now a `DevBox <https://github.com/Parisson/DevBox>` that is compatible with all platforms and facilitate the install and deployement procedures.
* Add an EPUB3 audio book generator for corpus and collection
* Add more 404 pages exceptions
class Meta:
model = MediaItem
exclude = model.exclude
+ # print exclude
def clean_code(self):
return self.cleaned_data['code'] or None
+class RestrictedMediaItemForm(MediaItemForm):
+
+ class Meta:
+ model = MediaItem
+ exclude = model.restricted
+ print exclude
+
+
class PlaylistForm(ModelForm):
class Meta:
'publishing_date', 'scientist', 'topic',
'summary', 'contributor', ]
+ restricted = ['copied_from_item', 'mimetype',
+ 'organization', 'depositor', 'rights',
+ 'recordist', 'digitalist', 'digitization_date',
+ 'publishing_date', 'scientist', 'topic',
+ 'summary', 'contributor', 'public_access']
+
+
def keywords(self):
return ContextKeyword.objects.filter(item_relations__item = self)
keywords.verbose_name = _('keywords')
class ItemEditView(ItemViewMixin, UpdateWithInlinesView):
- form_class = MediaItemForm
template_name = 'telemeta/mediaitem_edit.html'
+ def get_form_class(self):
+ if self.request.user.is_staff:
+ return MediaItemForm
+ else:
+ return RestrictedMediaItemForm
+
def forms_valid(self, form, inlines):
messages.info(self.request, ugettext_lazy("You have successfully updated your item."))
item = form.save()