Hi,
Sorry, via the admin interface (Web-GUI) I have inserted the following values:
My Actions
en
mike.test // test@test.de
Language
mike.test // test@test.de
User
Dan Brown
Author
Author
If I now try to add an Interest (“Dan Brown” and “en”) via the GUI selection I get:
TypeError at /admin/BookReminder/interest/add/
sequence item 0: expected string, ManyRelatedManager found
| Request Method: | POST |
| Request URL: | http://127.0.0.1:8000/admin/BookReminder/interest/add/ |
| Django Version: | 1.7 |
| Exception Type: | TypeError |
| Exception Value: | sequence item 0: expected string, ManyRelatedManager found |
| Exception Location: | D:\D-Project\SOL\BookReminder\models.py in __str__, line 39 |
| Python Executable: | C:\Python27\python.exe |
| Python Version: | 2.7.6 |
| Python Path: | ['D:\\D-Project\\SOL', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages'] |
| Server time: | Tue, 4 Nov 2014 18:48:34 +0100 |
So for me it looks like in the Model there is an error? Otherwise it should work via the GUI that gives me the two fields as input possibilites. The same happens, if I try to add the interesst by using the user in the admin interface and click there on "add" interest.
Best Regards,
Mike
No comments:
Post a Comment