Closed AaronTHolt closed 4 years ago
Can't create any group through the admin interface.
Previous error fixed, but new error preventing group creation:
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'
This bug doesn't happen when you let RCAMP create the dn. If you specify the dn and groupname manually, RCAMP tries to modify a nonexistent group and fails.
Can't create a CSU ldap group: 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 138, in save_model obj.save(organization=organization) File "./accounts/models.py", line 452, in save raise ValueError('No organization specified.') ValueError: No organization specified.