dvska / appengine-admin

Automatically exported from code.google.com/p/appengine-admin
0 stars 0 forks source link

BadValueError when trying to create new object that contains referenced property #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Creating a new comment from the sample classes (in QuickStart wiki page),
edit referenceproperty.
'reference' fails appengine_admin\__init__.py", line 76, in _attachListFields

   property.value = getattr(item, property.name)
 File "C:\Program\Google\google_appengine\google\appengine\ext\db\__init__.py",
line 2421, in __get__
   raise Error('ReferenceProperty failed to be resolved')
Error: ReferenceProperty failed to be resolved

I run the Article and Comment classes and "create new comment" results in
http://localhost:8080/admin/Comment/new/
appengine_admin\__init__.py", line 139, in get
   self._callHandlingMethod(url, self.getRegexps)
\appengine_admin\__init__.py", line 158, in _callHandlingMethod
   function(*matched.groups())
\appengine_admin\authorized.py", line 14, in check_login
   handler_method(self, *args, **kwargs)
\appengine_admin\__init__.py", line 219, in new_get
   self.response.out.write(template.render(path, templateValues))
...    raise BadValueError('Property %s is required' % self.name)
BadValueError: Property content is required

Original issue reported on code.google.com by valdiic on 27 Nov 2008 at 11:16

GoogleCodeExporter commented 9 years ago
Fixed in r20.
Verified by Niklas Rosencrantz.

Original comment by valdiic on 27 Nov 2008 at 12:09