| Name | carlosfutino |
|---|---|
| Email Address | n/a |
| Posts | 2 |
-
- 2011-10-15 20:21:37
- Acessing attribute in Superclass through JSON
- Board » Django » Ajax / JavaScript
-
HI,
I have a class which is a a subclass of another one, like this:
Class1(Model):
name = models.CharField()
{...}
Class2(Class1):
dateOfEntrance = models.DateField()
{...}
I have a view to select some instances of Class2 that are sent through JSON to an ajax function. Is there a way to include the name attribute in the JSON return?
Thanks
-
- 2011-10-15 20:15:30
- Re: How can we start to learn django framework ?
- Board » Django » Ajax / JavaScript
-
Knowing Python does help, but it is a really easy to learn language.
The best places to start are the Django Book (http://www.djangobook.com/en/1.0/) and the Django Project Docs (https://docs.djangoproject.com/en/1.3/) sites.


