It is really great for including get_FOO_url or getting data from
related models without making custom serializers when serializing to
json or xml for xmlhttp requests.
class Gallery(models.Model):
name = models.CharField()
def _preview(self):
try:
image = self.image_s
Hi, I have attached a new patch to ticket 2367 to add pagination
capabilities to date based generic views.
I'd appreciate if someone interested could give feedback.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
On 3/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I think the serializers should have a option for serializing model
> properties
>
> This is set to design decision needed, does this seem like something
> django needs?
>
> http://code.djangoproject.com/ticket/3661
In the example you gi
This is the best solution I've come up with so far:
class ConfirmForm(forms.Form):
"""
This behaves as a regular form, except that any field
whose name starts with "confirm_" will have an additional
clean method implemented for it that will check its value
against the fiel
I brought up a discussion on this topic in the Users' list:
http://groups.google.com/group/django-users/browse_thread/thread/9858019b2211444a/
To recap the focus of my point:
> The purpose of web development frameworks is to make common web
> development tasks easier, or give them to you for free
I think the serializers should have a option for serializing model
properties
This is set to design decision needed, does this seem like something
django needs?
http://code.djangoproject.com/ticket/3661
--~--~-~--~~~---~--~~
You received this message because you
On Mar 16, 5:33 pm, Mario <[EMAIL PROTECTED]> wrote:
> I've got a problem with escape filter. I need to convert \n to ,
> however I don't need a new line beetween a line as the linebreaks
> filter does.
>
> If I add a .replace('\n', '') in the escape method() from
> django.utils.html I've got
I've got a problem with escape filter. I need to convert \n to ,
however I don't need a new line beetween a line as the linebreaks
filter does.
If I add a .replace('\n', '') in the escape method() from
django.utils.html I've got that I want.
What can we do about it? a new filter or add ano
Thanks James, this sounds like a reasonable option. Could some of the
designated mentors let me know if they are willing to sign up under
the generous patronage of the PSF please?
Best,
Jannis
Am 16.03.2007 um 00:22 schrieb James Tauber:
>
> If Django wasn't successful in their application