Re: Possible bug in model validation

2011-02-03 Thread Miguel Araujo
Las try or I will report it as a bug as I think it is. 2011/1/28 Miguel Araujo <muchoch...@gmail.com> > Well, > > I'm just trying to figure out if this should be reported. > > Thanks, regards > > > Miguel Araujo > @maraujop > > 2011/1/22 Miguel Araujo

Re: weird behavior in select_related

2011-01-30 Thread Miguel Araujo
I didn't know that, that's why it was happening. I didn't post my models, as I wasn't sure that would help. Thanks for your help Daniel, Miguel Araujo @maraujop 2011/1/28 Daniel Roseman <dan...@roseman.org.uk> > On Saturday, January 22, 2011 1:38:22 PM UTC, maraujop wrote:

Re: weird behavior in select_related

2011-01-28 Thread Miguel Araujo
Hi, Please anyone confirm if this is normal, so I can report it or not. Thanks, regards Miguel Araujo @maraujop 2011/1/22 Miguel Araujo <muchoch...@gmail.com> > Hi everyone, > > I have been working on reducing DB queries in my project with great > results. B

Re: Possible bug in model validation

2011-01-28 Thread Miguel Araujo
Well, I'm just trying to figure out if this should be reported. Thanks, regards Miguel Araujo @maraujop 2011/1/22 Miguel Araujo <muchoch...@gmail.com> > Hi everyone, > > I have a model A that has a overwritten save method that updates a model > B's field. Both

Possible bug in model validation

2011-01-22 Thread Miguel Araujo
ards ---- Miguel Araujo @maraujop -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. Fo

weird behavior in select_related

2011-01-22 Thread Miguel Araujo
pointing at them, for performance reasons. I reckon this can be a bug. Thanks, best regards Miguel Araujo @maraujop -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@google

Re: How do I filter/exclude custom queryset fields created by .extra()?

2010-10-29 Thread Miguel Araujo
= ForeignKey(Widget, null=True) Regards, Miguel Araujo 2010/10/29 Jumpfroggy <rocketmonk...@gmail.com> > From a raw SQL standpoint, I've figured out that these constraints > need to be in the HAVING clause, not the WHERE clause. But it looks > like HAVING is not exposed thr

Today I released my first Django-app

2010-10-29 Thread Miguel Araujo
this notice here, so you get to know about it. Project's website is: http://github.com/maraujop/django-rules Best regards, Miguel Araujo -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Forms in a Workflow for Related Models

2010-10-29 Thread Miguel Araujo
Hi, You will need to go step by step. First you ask the user for the reviewer with a form. Then the user has to submit the form. You manage your input form and see if the data for that reviewer already exists, if it does, then you load initial data in the second form. Now you redirect the user to

Re: Model Inheritance.

2010-10-29 Thread Miguel Araujo
Hi Tom, You might want to have a look at inheritanceCastModel from django-model-utils by Carl Meyer http://github.com/carljm/django-model-utils Best regards, Miguel Araujo 2010/10/29 David De La Harpe Golden <david.delaharpe.gol...@ichec.ie> > On 29/10/10 00:04, Tom Eastman wrote: &g

Re: possible bug in joining on a geo field

2010-10-25 Thread Miguel Araujo
Should I report it? who should I contact? Anyone can confirm this is a bug? 2010/10/23 Miguel Araujo <muchoch...@gmail.com> > Thanks Karen, you are right. But I missed the underscore for sending this, > although I was trying here with double underscore: > > S

Re: inheriting User class

2010-10-25 Thread Miguel Araujo
more obscure and less elegant if I need to access User though my Profile `userprofile__user__username__exact` If there is no better option, I will try to wrap everything in some helpers, Regards, Miguel Araujo 2010/10/25 Rob <robert.osbo...@gmail.com> > Probably most of us are using the

Re: Users table

2010-10-24 Thread Miguel Araujo
-registration/ Regards, Miguel Araujo 2010/10/24 miksayer <miksa...@gmail.com> > Hello! I'm newbie in Django. And I have few questions. For learning > Django I decided to develop simple todo-service(where you can note > your current deals). > I started new project "todo&

Re: inheriting User class

2010-10-24 Thread Miguel Araujo
¿no one knows anything about this? Thanks, regards Miguel Araujo 2010/10/22 Miguel Araujo <muchoch...@gmail.com> > Hello everyone, > > I'm not very aware about what's the direction Django is taking about the > User model and making it swappable. Meanwhile I would like to a

Re: possible bug in joining on a geo field

2010-10-23 Thread Miguel Araujo
'distance' for the lookup type? So it's still not working. Regards, Miguel Araujo 2010/10/23 Karen Tracey <kmtra...@gmail.com> > On Sat, Oct 23, 2010 at 1:07 PM, Miguel Araujo <muchoch...@gmail.com>wrote: > >> Item.objects.filter(location__point__distance_lte = (point, D(km

possible bug in joining on a geo field

2010-10-23 Thread Miguel Araujo
))) And I'm getting: FieldError: Join on field 'point' not permitted. Did you misspell 'distance_lte' for the lookup type? is this a bug? should I report it in a ticket? am I doing anything wrong? Thanks, regards Miguel Araujo -- You received this message because you are subscribed to the Google

inheriting User class

2010-10-22 Thread Miguel Araujo
using now an AUTH_PROFILE_MODULE at the moment, but I don't realy like this approach, as it makes my class hierarchy more complicated. Thanks, best regards Miguel Araujo -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: dump sqlite to file when testing

2010-10-21 Thread Miguel Araujo
Thanks Russ, I couldn't find it in the documentation, IMHO I think it's a little bit hidden. Best regards, Miguel Araujo 2010/10/21 Russell Keith-Magee <russ...@keith-magee.com> > On Wed, Oct 20, 2010 at 10:33 PM, Miguel Araujo <muchoch...@gmail.com> > wrote: > > Hi ev

dump sqlite to file when testing

2010-10-20 Thread Miguel Araujo
Hi everyone, Is there any way to force sqlite3 to use a file instead of RAM when running tests? I would like to access the DB somehow to check some fields. This is the only DB engine I have in this machine. Thanks, Best regards Miguel Araujo -- You received this message because you

Re: trying to get a cache per request

2010-10-10 Thread Miguel Araujo
Thanks again Doug, I understand your method. I think the problem is that it might be too much overhead for what I can gain using a cache, so I might drop the idea of adding one. In any case, your explanation will be probably worth in future projects :) Regards, Miguel 2010/10/10 Doug

Re: trying to get a cache per request

2010-10-09 Thread Miguel Araujo
Thanks Doug, In my Django-app where I want to create a cache, I don't have a request parameter and I can not add it because I need to be compatible with a part of the framework itself. I don't need to access that cache in the templates anywhere. I would like that my objects persists only per

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
Thanks, I already got that :) I misunderstood the license, regards Miguel Araujo 2010/9/30 Steve Holden <holden...@gmail.com> > On 9/30/2010 1:55 PM, Miguel Araujo wrote: > > Hi Michael, > > > > I have been looking at your project, django.extauth and I have t

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
Sorry, I misunderstood it. Then everything looks great 2010/9/30 mhall119 <mhall...@gmail.com> > The license is a 3-clause BSD style license, it's compatible with > Django's license as far as I know. > > On Sep 30, 1:55 pm, Miguel Araujo <muchoch...@gmail.com> wrote: &

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
it and see if I can help you with anything. Only thing that cached my eye is that code is Copyrighted. Why not using an Open-source license? Thanks for your mail, regards Miguel Araujo 2010/9/30 mhall119 <mhall...@gmail.com> > I've recently open-sourced some code that I developed fo

Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
it to the backend for permission checks. I know I could do a decorator like @own_article but I'm looking for a more reusable solution, that I would make open source and release at Github. What do you think? Is it feasible and well laid out? Thanks, best regards Miguel Araujo -- You r

Re: google projection GeoDjango question

2010-08-27 Thread Miguel Araujo
After 3 days trying to solve this, I found that geopy returns latitude/longitude and GEOS expects coordinates in reversed order. This fixes my issue with the maps. Thanks though, Miguel Araujo 2010/8/27 maraujop <muchoch...@gmail.com> > Hi everyone, > > I'm new to GeoDjango. A