Re: Languages problem

2009-03-25 Thread alexarsh
Thanks for the replies. I found my problem. It's the slugify method. It doesn't work with non- english letters. Do you have an idea what can be my best alternative, so I can do slugify with Russian or Arabic letters? Thanks, Alex A. On Mar 25, 2:24 am, Malcolm Tredinnick wrote: > On Tue, 2009-0

Re: Languages problem

2009-03-24 Thread Malcolm Tredinnick
On Tue, 2009-03-24 at 07:33 -0700, alexarsh wrote: > Hi, > > No, I don't have any errors. I just get my title empty. So is the data not being stored in the database? Use psql and have a look at the table directly to see what's there. Django quite happily handles non-ASCII text in the admin (htt

Re: Languages problem

2009-03-24 Thread Muslu Yüksektepe
i want you try without *> >def save(self): > >if not self.pk: > >self.secid = slugify(self.title).replace("-**", "_") > >if MainCategory.objects.filter(**secid = self.secid): > >super(MainCategory, self).save() > >self.secid = "%s

Re: Languages problem

2009-03-24 Thread alexarsh
Hi, No, I don't have any errors. I just get my title empty. Regards, Alex A. On Mar 24, 3:56 pm, Muslu Yüksektepe wrote: > if u have a error pls write all error code. > > 2009/3/24 knight > > > > > > > Hi, > > > I have the following class in my models.py: > > > class MainCategory(models.Model

Re: Languages problem

2009-03-24 Thread Muslu Yüksektepe
if u have a error pls write all error code. 2009/3/24 knight > > Hi, > > I have the following class in my models.py: > > class MainCategory(models.Model): >title = models.CharField(max_length=50) >value = models.DecimalField(default=0, max_digits=5, > decimal_places=3) >secid = model

Languages problem

2009-03-24 Thread knight
Hi, I have the following class in my models.py: class MainCategory(models.Model): title = models.CharField(max_length=50) value = models.DecimalField(default=0, max_digits=5, decimal_places=3) secid = models.SlugField(max_length=1000, editable=False) def save(self): if no