FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 59211672 authored by Dr Abraham Martin's avatar Dr Abraham Martin
Browse files

Limitation of the maximum characters the User.last_name (30) and Group.name (80) can have

parent 2fa35642
No related branches found
No related tags found
No related merge requests found
django-ucamwebauth changelog
=============================
1.2.1 - 01/05/2015
------------------
- Limitation of the maximum characters the User.last_name (30) and Group.name (80) can have
1.2 - 01/05/2015
------------------
......
django-ucamwebauth (1.2.1) unstable; urgency=high
* Limitation of the maximum characters the User.last_name (30) and Group.name (80) can have
-- Abraham Martin <amc203@cam.ac.uk> Wed, 13 May 2015 16:37:01 +0100
django-ucamwebauth (1.2) unstable; urgency=low
* Updated ibisclient to 1.2.3
......
......@@ -8,7 +8,7 @@ setup(
description='A Django module for the University of Cambridge Lookup service',
long_description=open('README.rst').read(),
url='https://git.csx.cam.ac.uk/x/ucs/u/amc203/django-ucamlookup.git',
version='1.2',
version='1.2.1',
license='MIT',
author='Information Systems Group, University Information Services, University of Cambridge',
author_email='information-systems@ucs.cam.ac.uk',
......
......@@ -8,11 +8,11 @@ from utils import *
def add_name_to_user(instance, **kwargs):
user = instance
if user is not None:
user.last_name = return_visibleName_by_crsid(user.username)
user.last_name = return_visibleName_by_crsid(user.username)[:30]
@receiver(pre_save, sender=LookupGroup)
def add_title_to_group(instance, **kwargs):
group = instance
if group is not None:
group.name = return_title_by_groupid(group.lookup_id)
\ No newline at end of file
group.name = return_title_by_groupid(group.lookup_id)[:80]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment