Hi, I started learning Django(also new to Python) and I would like to use
it in Japanese.
Since truncatewords doesn't seem working in non-English language, I tried
to create a resembling function.
I wrote the function in my Product class in my models.py:
class Product(models.Model):
title = m
Don't use the parenthasesbin the template. Just call
{{product.description.shorten_words}}
Kirby
--
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 email
to django-users+u
On Saturday, April 12, 2014 1:10:34 AM UTC-4:30, Kimitaka wrote:
>
> I wrote the function in my Product class in my models.py:
> class Product(models.Model):
> title = models.CharField(max_length=220)
> description = models.CharField(max_length=3000, null=True, blank=True)
> price = models.DecimalF
On Sat, Apr 12, 2014 at 7:50 PM, Camilo Torres wrote:
> On Saturday, April 12, 2014 1:10:34 AM UTC-4:30, Kimitaka wrote:
>>
>> I wrote the function in my Product class in my models.py:
>> class Product(models.Model):
>> title = models.CharField(max_length=220)
>> description = models.CharField(max
Can you try with this : https://gist.github.com/venkasub/10544716
It works for me. Let me know if you have trouble.
-V
On Wed, Apr 9, 2014 at 4:58 PM, Leandro Alves wrote:
> Hi again,
>
> So I followed the documentation and created a formset as we have there.
> https://docs.djangoproject.com/e
I'm using a Class based Generic Detail View to show end users their answers
to previous mulit-page forms. How can I use that final detail view to
validate the answers? Should I not be using a Detail view or can I somehow
do a conditional get to the next view based upon those answers? Right now I
6 matches
Mail list logo