Commit aca376e1 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Fix project definition resource grants registration

parent c77db977
......@@ -951,9 +951,9 @@ class ProjectApplicationForm(forms.ModelForm):
for name, value in
if not value:
uplimit = value[0]
subs = name.split('_uplimit')
if len(subs) == 2:
uplimit = value
if name.endswith('_uplimit'):
subs = name.split('_uplimit')
prefix, suffix = subs
s, sep, r = prefix.partition(RESOURCE_SEPARATOR)
resource = Resource.objects.get(service__name=s, name=r)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment