|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Custom VO works, not UserI can send and receive custom VO's now, it's dope, thanks for the help!
However, using a foreign key for a user does't seem to work. A model: class Something(models.Model)
user = models.ForeignKey(User) Will return my strongly-typed "SomethingVO" on the client in Flex. However, the user is null. - if I log into admin, it's not null... it's there and has a value
- if I comment out the class registration in python, no dice - if I comment out the class registration in Flex, and ensure the VO's aren't compiled into the SWF, no dice ....so why would the admin show the value, but not Flex?
_______________________________________________ PyAMF users mailing list - users@... http://lists.pyamf.org/mailman/listinfo/users |
|
|
Re: Custom VO works, not UserHi,
If you're using Django and you may need to use select_related to get relational properties. Check [1] for more details. If that doesn't solve your issue get back with some code and we'll work through the problem. Cheers, Nick [1] - http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4 On 19 Jul 2009, at 19:21, Jesse Warden wrote: > I can send and receive custom VO's now, it's dope, thanks for the > help! > > However, using a foreign key for a user does't seem to work. A model: > > class Something(models.Model) > user = models.ForeignKey(User) > > Will return my strongly-typed "SomethingVO" on the client in Flex. > However, the user is null. > - if I log into admin, it's not null... it's there and has a value > - if I comment out the class registration in python, no dice > - if I comment out the class registration in Flex, and ensure the > VO's aren't compiled into the SWF, no dice > > ....so why would the admin show the value, but not Flex? > _______________________________________________ > PyAMF users mailing list - users@... > http://lists.pyamf.org/mailman/listinfo/users _______________________________________________ PyAMF users mailing list - users@... http://lists.pyamf.org/mailman/listinfo/users |
|
|
Re: Custom VO works, not UserF'ing dope, that it was it! Thanks bro.
On Sun, Jul 19, 2009 at 6:06 PM, Nick Joyce <nick@...> wrote: Hi, _______________________________________________ PyAMF users mailing list - users@... http://lists.pyamf.org/mailman/listinfo/users |
| Free embeddable forum powered by Nabble | Forum Help |