Django CMS or Wiki?

2015-08-23 Thread guettli
I am unsure which application I should use for my personal homepage. At work we use a wiki and I like it a lot, since you can edit the content very fast and linking between pages is very easy. On the other hand django cms seems to be a widespread application and it could be a solid ground for

Re: django-rest-framework-recursive view not returning ID

2015-08-23 Thread Shekar Tippur
James, My bad. Sorry an obvious mistake from my side. Yes, I had forgotten ID in the serializer field. - Shekar > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an ema

Re: ManyToMany relationship

2015-08-23 Thread Carlos A. Carnero Delgado
El ago. 23, 2015 3:34 PM, "venkat" escribió: > > How can i overcome this?? > I think you should be using the related_name property in the ManyToMany fields of the model. Giving different names, of course, since that maybe the cause of your problems. It is documented, BTW. HTH, Carlos. -- You r

Re: ManyToMany relationship

2015-08-23 Thread James Schneider
> I have two models as follows > > > class Person(models.Model): > first_name = models.CharField(max_length=30) > last_name = models.CharField(max_length=30) > date_of_birth = models.DateField() > height = models.IntegerField() > def __unicode__(self): > return '%s %s' %(self.first_name, self.last_

ManyToMany relationship

2015-08-23 Thread venkat
I have two models as follows class Person(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) date_of_birth = models.DateField() height = models.IntegerField() def __unicode__(self): return '%s %s' %(self.first_name, self.last_name) class Movie

Re: django-rest-framework-recursive view not returning ID

2015-08-23 Thread James Schneider
On Aug 23, 2015 10:05 AM, "Shekar Tippur" wrote: > > Hello, > > I am using https://github.com/heywbj/django-rest-framework-recursive and it works great. > > > I seem to have a small issue with it. When I try a GET operation on it, I dont seem to get the ID in the result. I want ID to be part of th

django-rest-framework-recursive view not returning ID

2015-08-23 Thread Shekar Tippur
Hello, I am using https://github.com/heywbj/django-rest-framework-recursive and it works great. I seem to have a small issue with it. When I try a GET operation on it, I dont seem to get the ID in the result. I want ID to be part of the result so that I can filter further on parent_id. Mo

Re: how to access the parent instance from the Inline model admin?

2015-08-23 Thread Michael
I'd like to get the model instance of the Parent admin. On Sunday, August 23, 2015 at 10:58:46 AM UTC-5, Gergely Polonkai wrote: > > Whose parent do you want to get? The inline, the model, or, less likely, > the form? > On 23 Aug 2015 16:48, "Michael" > > wrote: > >> How can I access the paren

Re: how to access the parent instance from the Inline model admin?

2015-08-23 Thread Gergely Polonkai
Whose parent do you want to get? The inline, the model, or, less likely, the form? On 23 Aug 2015 16:48, "Michael" wrote: > How can I access the parent instance from the inline model admin? > > My goal is to allow to add a child object only when the status of the > parent is equal to 1 so I'm try

how to access the parent instance from the Inline model admin?

2015-08-23 Thread Michael
How can I access the parent instance from the inline model admin? My goal is to allow to add a child object only when the status of the parent is equal to 1 so I'm trying to override the `has_add_permission` function based on the status of the parent instance but I cannot get the parent instanc

Re: DRF and self join

2015-08-23 Thread Shekar Tippur
Thanks James. I had seen this link earlier but was not sure if I understood it right. Revisiting this link after your post made it clear. Thanks again for the pointer. - Shekar On Thursday, 20 August 2015 22:26:39 UTC-7, James Schneider wrote: > > Have a look at this SO post that the DRF author

django_select2- How can I use extra data in Javascript for custom rendering

2015-08-23 Thread Ram Ganesh
Just posted a question about this on stackoverflow Thanks, Ram Ganesh K -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubsc