blob: a6a8fd2c8cbb8ca1e422d396e40ae737bd7866c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
"""MetatypeAdmin for Gstudio"""
from django.contrib import admin
from django.core.urlresolvers import NoReverseMatch
from django.utils.translation import ugettext_lazy as _
from gstudio.admin.forms import ExpressionAdminForm
import reversion
class ExpressionAdmin(reversion.VersionAdmin):
def save_model(self, request, expression, form, change):
expression.title = expression.composed_sentence
expression.save()
|