Update Django GPG app

Add keyword arguments to all calls. Rename URL parameters to be
explicit ("key_id"). Add key delete view test. Update tests
to use a mixin for repeated key creation code. Grant permissions
and access the proper way using self.grant_permission and
self.grant_access.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-01-20 18:08:47 -04:00
parent 14fd5f02a8
commit fc29309f68
16 changed files with 168 additions and 123 deletions

View File

@@ -44,6 +44,6 @@ class KeyDetailForm(DetailForm):
class KeySearchForm(forms.Form):
term = forms.CharField(
label=_('Term'),
help_text=_('Name, e-mail, key ID or key fingerprint to look for.')
help_text=_('Name, e-mail, key ID or key fingerprint to look for.'),
label=_('Term')
)