When you manually specify the groupname and dn when creating a new group, RCAMP tries to modify a nonexistent group and fails. This should be labelled/explained somewhere, fixed so it doesn't happen, or a useful error message should print instead of a 500.
Internal Server Error: /admin/accounts/rcldapgroup/add/
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, callback_kwargs)
File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 618, in wrapper
return self.admin_site.admin_view(view)(*args, *kwargs)
File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
response = view_func(request, args, kwargs)
File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
response = view_func(request, *args, kwargs)
File "/usr/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 233, in inner
return view(request, *args, *kwargs)
File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1518, in add_view
return self.changeform_view(request, None, form_url, extra_context)
File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 34, in _wrapper
return bound_func(args, kwargs)
File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
response = view_func(request, *args, kwargs)
File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 30, in bound_func
return func.get(self, type(self))(*args2, *kwargs2)
File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 145, in inner
return func(args, kwargs)
File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1469, in changeform_view
self.save_model(request, new_object, form, not add)
File "./accounts/admin.py", line 177, in save_model
obj.save(organization=organization)
File "./accounts/models.py", line 466, in save
super(RcLdapGroup,self).save(*args,**kwargs)
File "/opt/src/django-ldapdb/ldapdb/models/base.py", line 137, in save
orig = self._loaded_values
AttributeError: 'RcLdapGroup' object has no attribute '_loaded_values'
When you manually specify the groupname and dn when creating a new group, RCAMP tries to modify a nonexistent group and fails. This should be labelled/explained somewhere, fixed so it doesn't happen, or a useful error message should print instead of a 500.
Internal Server Error: /admin/accounts/rcldapgroup/add/ Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, callback_kwargs) File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 618, in wrapper return self.admin_site.admin_view(view)(*args, *kwargs) File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view response = view_func(request, args, kwargs) File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func response = view_func(request, *args, kwargs) File "/usr/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 233, in inner return view(request, *args, *kwargs) File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1518, in add_view return self.changeform_view(request, None, form_url, extra_context) File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 34, in _wrapper return bound_func(args, kwargs) File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view response = view_func(request, *args, kwargs) File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 30, in bound_func return func.get(self, type(self))(*args2, *kwargs2) File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 145, in inner return func(args, kwargs) File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1469, in changeform_view self.save_model(request, new_object, form, not add) File "./accounts/admin.py", line 177, in save_model obj.save(organization=organization) File "./accounts/models.py", line 466, in save super(RcLdapGroup,self).save(*args,**kwargs) File "/opt/src/django-ldapdb/ldapdb/models/base.py", line 137, in save orig = self._loaded_values AttributeError: 'RcLdapGroup' object has no attribute '_loaded_values'