Hello, I am migrating a system from django 0.97 (svn) to 1.0.2 (stable) and I got the following error when a [database] SEARCH FORM is submitted : 'RelatedObject' object has no attribute 'unique'
I recreated all tables through 'python manage.db syncdb' command and imported all the old data back again. It looks like that all unique indexes declared were created correctly on the MySQL database. In fact, I didn't even understand what this error means. Can someone help me out ? I already read http://docs.djangoproject.com/en/dev/releases/1.0-porting-guide/ and http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges and, unfortunately, had no luck =/ Environment: Request Method: POST Request URL: http://localhost:8000/ftrTool/searchFeature/ Django Version: 1.0.2 final Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin', 'webTool.ftrTool'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware') Traceback: File "C:\PYTHON25\Lib\site-packages\django\core\handlers\base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "D:\thiago\dados\eclipse_workspace\webTool\..\webTool\ftrTool \views.py" in searchFeature 474. if form.is_valid(): File "C:\PYTHON25\Lib\site-packages\django\forms\forms.py" in is_valid 120. return self.is_bound and not bool(self.errors) File "C:\PYTHON25\Lib\site-packages\django\forms\forms.py" in _get_errors 111. self.full_clean() File "C:\PYTHON25\Lib\site-packages\django\forms\forms.py" in full_clean 241. self.cleaned_data = self.clean() File "C:\PYTHON25\Lib\site-packages\django\forms\models.py" in clean 223. self.validate_unique() File "C:\PYTHON25\Lib\site-packages\django\forms\models.py" in validate_unique 251. if f.unique and self.cleaned_data.get(name) is not None: Exception Type: AttributeError at /ftrTool/searchFeature/ Exception Value: 'RelatedObject' object has no attribute 'unique' -- Thiago --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---