Add widget support to SourceColumn
Allow passing a widget class to SourceColumn. This makes using lambdas to render model column unnecesary and are mostly removed too. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -6,6 +6,8 @@ import shutil
|
||||
|
||||
import gnupg
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from mayan.apps.common.utils import mkdtemp
|
||||
|
||||
|
||||
@@ -149,6 +151,7 @@ class KeyStub(object):
|
||||
@property
|
||||
def key_id(self):
|
||||
return self.fingerprint[-8:]
|
||||
key_id.fget.short_description = _('Key ID')
|
||||
|
||||
|
||||
class SignatureVerification(object):
|
||||
|
||||
Reference in New Issue
Block a user