Re: ManyToMany problem

2009-05-27 Thread MartinBorthiry
On May 27, 6:11 pm, Alex Gaynor wrote: > On Wed, May 27, 2009 at 4:07 PM, MartinBorthiry > wrote: > > > > > > > Hello, > > >  I have this model with a manyToMany relationship: > > >  class Group(BaseClass): > >   ... > >    members

ManyToMany problem

2009-05-27 Thread MartinBorthiry
Hello, I have this model with a manyToMany relationship: class Group(BaseClass): ... members = models.ManyToManyField (Client ,through='Membership',related_name="members" , blank=True) . class Membership(BaseClass): client = models.Forei

Sync db and model

2009-04-01 Thread MartinBorthiry
Hello: We are using django-evolution to sync our model with the db, but we have some issues. Which is the best way to keep synchronized our model and db? We want to keep the previous data into db. Thanks --~--~-~--~~~---~--~~ You received this message because

Re: JSON Model Serialization

2009-03-15 Thread MartinBorthiry
> > I'm Trying to serialize a dict which have a list of Model's instance. > > The format that i need is json. Something like that: > > > people = Person.objects.all() > > res = {'res':0, 'msg':'Ok','data': people} > > > but, i need that result: > > {'res':0, 'msg':'

JSON Model Serialization

2009-03-14 Thread MartinBorthiry
Hello: I'm Trying to serialize a dict which have a list of Model's instance. The format that i need is json. Something like that: people = Person.objects.all() res = {'res':0, 'msg':'Ok','data': people} but, i need that result: {'res':0, 'msg':'Ok','data': [{'id':1

Re: Django Template - i18n & filters and inner variables ?

2009-02-24 Thread MartinBorthiry
> > 1/ Using the i18n internationalization module, I would like to combine > > the translation with pluralize and capfirst filters. I know I’m a > > crazy dog. > > > {% trans 'tag' %}{{ tag_list|pluralize }} > > => All right, everything is ok. > > > But now, how can I specify the capfirst facili