Re: The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread Collin Grady
Point of clarification, it'd be a GET param, since you can't add POST in a redirect ;-) -- I do not fear computers. I fear the lack of them. -- Isaac Asimov --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Questions about model.save()

2007-04-21 Thread Collin Grady
used if specified in the model regardless, or should you have to specify it in the field list? (or should I move this question to the ticket itself?) Thanks for any insights (or corrections) :) -- Collin Grady --~--~-~--~~~---~--~~ You received this message because

Re: Questions about model.save()

2007-04-21 Thread Collin Grady
x27;t a full justification on its own :) > What speed-ups are you seeing on what sort of > use-cases with this change? I haven't done any testing yet - the performance comment was based on things others have said to me on how SELECTs involving columns with a

Re: Questions about model.save()

2007-04-22 Thread Collin Grady
t; elapsed time is so small as not be worth micro-optimising. Timing the > performance will be necessary. Ok, I stand corrected on that aspect of performance :) -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Drag and Drop Ordering in the Admin Overview

2007-04-26 Thread Collin Grady
> If we implement it ourselves should we do this against the new-forms > admin branch or the trunk? It'd probably be better to target it to newforms-admin since the current admin will be going away once that is ready, so you wouldn't have to update it later.

Probable bug in templates - default tags not always loading properly

2008-06-05 Thread Collin Grady
file loader.py is parsed - so if you import Template and Context, they don't work, yet the moment you import loader, they do - is this an intentional decision, or a valid issue? -- Collin Grady ...[Linux's] capacity to talk via any medium except smoke signals. -

Re: Probable bug in templates - default tags not always loading properly

2008-06-05 Thread Collin Grady
Trevor Caira said the following: > Are you sure you're importing both Template and Context? I get the > same error as OP. I don't have to import Context to trip this, only Template -- Collin Grady Since a politician never believes what he says, he is surprised when ot

Re: Probable bug in templates - default tags not always loading properly

2008-06-05 Thread Collin Grady
[EMAIL PROTECTED] said the following: > Yep, I just did it, how are you guys starting the python interpreter? python no manage.py, no ipython, nothing special, except my env has DJANGO_SETTINGS_MODULE set right -- Collin Grady I had the rare misfortune of being one of the first people

Re: Response to "Shortcutting render_to_response"

2008-06-11 Thread Collin Grady
Nathaniel Whiteinge said the following: > Either way, this is a bike-shed issue. In fact, he can simply do this: from django.views.generic.simple import direct_to_template as render_response and get the name he wants without patching anything :) -- Collin Gr

Re: Is there a django meta model ?

2008-06-11 Thread Collin Grady
) configuration files ? Usage questions like this belong on the django-users list :) This list is for the development of django itself. -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django d

Request for review

2008-06-11 Thread Collin Grady
/4102 The first three are the big ones I'd like to help finish, but 4102 would also be very nice :) -- Collin Grady "We came. We saw. We kicked its ass." -- Bill Murray, _Ghostbusters_ --~--~-~--~~~---~--~~ You received thi

Re: django.db.connection request - add a key

2008-06-13 Thread Collin Grady
hiwd said the following: > 'index': self.db.queries.__len__() Shouldn't that be len(self.db.queries) ? :) -- Collin Grady We are not anticipating any emergencies. --~--~-~--~~~---~--~~ You received this message because you

Re: Latest Comments

2008-06-14 Thread Collin Grady
Usage questions belong on the django-users list, not here - this list is for discussion of the development of django itself :) -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django devel

Re: Bug in mod_python

2008-06-17 Thread Collin Grady
Peter Melvyn said the following: > I see - is there a way how to pass such URL via Google interface? http://tinyurl.com ? :) -- Collin Grady If at first you don't succeed, you're doing about average. -- Leo

Re: List of DDN Tickets

2008-06-19 Thread Collin Grady
Can I recommend http://code.djangoproject.com/ticket/4102 for the list? :) -- Collin Grady Bumper sticker: All the parts falling off this car are of the very finest British manufacture. --~--~-~--~~~---~--~~ You received this message because you

Re: List of DDN Tickets

2008-06-23 Thread Collin Grady
Model fields have null and blank arguments, form fields have required. -- Collin Grady A chicken is an egg's way of producing more eggs. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developer

Re: more DDN Tickets

2008-06-24 Thread Collin Grady
Jeff Anderson said the following: > #4118 Do you have the wrong # here? That ticket is closed: duplicate :) -- Collin Grady It was a brave man that ate the first oyster. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: RegexURLResolver.resolver can fall through and return None

2008-06-26 Thread Collin Grady
several notes about filing tickets, including this one: # If you're getting rejected by the spam filter, we apologize! The best way to avoid that is to register for an account and make sure you're logged in. -- Collin Grady --~--~-~--~~~---~--~~ You rece

Re: Spam detection

2008-06-26 Thread Collin Grady
Mike Scott said the following: > Maybe the page after the block submission needs to be changed. And > maybe you could output a copy of the submitted text too just incase > you didn't have a copy written elsewhere. Something wrong with your browser's back button? :) --

Re: More secure user password reset

2008-06-27 Thread Collin Grady
ven if someone did sniff the code, it'd be useless after that. -- Collin Grady Abstainer, n.: A weak person who yields to the temptation of denying himself a pleasure. -- Ambrose Bierce, "The Devil's Dictionary" --~--~-~--~~~--

Re: MySQL exact/iexact lookups change

2008-06-30 Thread Collin Grady
I don't seem to have mentioned that in the ticket, since it didn't really matter there) [1] http://code.djangoproject.com/ticket/3575 -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django de

Re: Django newforms RadioSelect issue

2008-06-30 Thread Collin Grady
Questions of this nature should go on django-users, not django-developers - this list is for the development of Django itself, not usage questions :) -- Collin Grady Sentimentality -- that's what we call the sentiment we don't share. -- Gra

Re: ManyToManyField in Admin list_display

2008-07-02 Thread Collin Grady
Please send usage questions to django-users - this list is for the development of django itself. -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to

newforms-admin and urls (reverse/etc)

2008-07-07 Thread Collin Grady
ble to link back to admin for staff members, so you can quickly go and edit a page, so I think any fix along these lines would be very useful :) -- Collin Grady "I only touch base with reality on an as-needed basis!"

Re: bug in forms

2008-09-16 Thread Collin Grady
in 0.96 but changed to cleaned_data shortly after to avoid conflicts with validation functions for a field named "data" - you are reading old examples and/or docs. -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: bug in forms

2008-09-16 Thread Collin Grady
ics-forms-index > > I make a mistake? That line also says what I said - it *used to be* clean_data in 0.96, but it *is* cleaned_data now. So if the line of code had clean_data, it would be wrong, but it has cleaned_data, so it is right. -- Collin Grady --~--~-~--~~--

Re: bug in forms

2008-09-16 Thread Collin Grady
ta and f.unique and not is_null_pk: > AttributeError: 'IdeaForm' object has no attribute 'cleaned_data' >>>> > and i read the doc over and over again and i cant use the forms. This sounds like more of a usage question then (for instance

Re: RFC: Raise an Exception to return a Response

2008-09-17 Thread Collin Grady
Wouldn't it be easier to use process_exception instead of process_view ? -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send

Re: 'unicode' object has no attribute 'user'

2008-09-18 Thread Collin Grady
ment of django itself, not usage questions or errors like this :) -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-devel

Re: Postgresql transaction aborts, despite being in autocommit mode

2008-09-19 Thread Collin Grady
This is related to http://code.djangoproject.com/ticket/3460 -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-

Re: "things are ready" signal?

2008-10-01 Thread Collin Grady
On Wed, Oct 1, 2008 at 2:04 PM, Marc Fargas <[EMAIL PROTECTED]> wrote: > So, would a signal there be useful? (no ticket filled yet) And, where > can one hook code for that? :) I don't think any such place exists, so there's nothing you can do for

Re: Proposal: remove auth context processor dependancy for Admin

2008-11-01 Thread Collin Grady
ur own subclass of AdminSite and override check_dependencies -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-devel

Re: Proposal: remove auth context processor dependancy for Admin

2008-11-03 Thread Collin Grady
ck for that context processor, you could replace the auth processor with a custom one that only works in admin's path and as such wouldn't add any db hits to the rest of the site. So if your goal is to make only admin do the queries for that data, it's entirely possible. -- Coll

Re: Model inheritance question

2008-11-03 Thread Collin Grady
Usage questions belong on django-users, not django-developers - this list is for the discussion of the development of django itself. -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: problem with inlineformset_factory

2008-11-06 Thread Collin Grady
Usage questions belong on the django-users list - this list is for the development of django itself :) -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To po

Re: login_required

2008-11-10 Thread Collin Grady
t would be a backwards-incompatible change, so it isn't likely to happen :) -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send

Suggestion for doc search

2008-11-15 Thread Collin Grady
hey hit an out of date doc page. -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubsc

Re: RequestContext rarely used (branched from Feature reviews for 1.1)

2008-11-18 Thread Collin Grady
to_template for some reason :) http://www.djangosnippets.org/snippets/3/ -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to

Re: Additional Fields in Core

2008-12-15 Thread Collin Grady
Make app. Post on Google Code (or other site) Profit! :) These shouldn't need to be in core to be used. -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group.

Re: test failures when CACHE_BACKEND is 'dummy:///'

2008-12-17 Thread Collin Grady
anything - the tests rely on caching, since they test the cache session backend. There is no way to make them not fail unless you either do not test that, or make the dummy cache backend /not/ a dummy cache backend anymore. -- Collin Grady --~--~-~--~~~---~--~~ You

Re: view permission for contrib.admin

2008-12-18 Thread Collin Grady
On Thu, Dec 18, 2008 at 8:30 AM, gert wrote: > Which was definitely what was intended on day one when the CHANGE, > ADD, DELETE permissions were created. Says you. Admin is for admins. Not limited users. Write your own views. -- Collin

Re: Problem with ORM

2009-01-14 Thread Collin Grady
py of it. This is not a bug, as everything is working as intended :) -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to

Re: Problem with ORM

2009-01-15 Thread Collin Grady
. Just like if you had instantiated it. If you want it to fail if the object is gone, use force_update=True as you were told before. This is not an ORM bug, no matter how much you would like it to act otherwise. -- Collin Grady --~--~-~--~~~---~--~~ You received this

Re: #10244 FileFields can't be set to NULL in the db

2009-02-20 Thread Collin Grady
gt; Model.objects.aggregate(Count('filefield')) i would expect this to > count objects with a file and not those without a file. > > This may relate to other fields aswell, if a field has both blank=True > and null=True should it not store NULL in the db? > > >

Re: Creating "lazy" foreign keys

2009-02-22 Thread Collin Grady
ally means >> > relationships aren't fetched prematurely (foreignkey object isn't fetched >> > automatically), which django does by default. >> >> > Secondly, the NULL value in databases is actually defined originally as >> > Unknown, so it s

Re: Creating "lazy" foreign keys

2009-02-22 Thread Collin Grady
xchange for a few pointers here and there. Sarcasm, and > blaming the user, is a very tasteless way of saying no. > > > On Feb 22, 10:52 am, Collin Grady wrote: >> Seems you could just use an IntegerField and do it yourself, instead >> of expecting django to adapt itself to

Re: Creating "lazy" foreign keys

2009-02-24 Thread Collin Grady
;> return None >> >> other=property(_get_other,_set_other) >> >> When someone tries to access "other", it will call the _get_other() >> method automagically, so you can have whatever logic you need in there >> without forcing anything but the model to deal

Re: My case for #9006

2009-02-27 Thread Collin Grady
One could also set a default ordering on a model and have a consistent order everywhere :) -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this g

Re: My case for #9006

2009-02-28 Thread Collin Grady
Of course not - you can do .order_by() to clear ordering if you really don't want a default ordering somewhere, but all your examples sound like you do :) On Sat, Feb 28, 2009 at 3:02 PM, PauloS wrote: > > On Feb 27, 5:28 pm, Collin Grady wrote: >> One could also set a defa

Re: Cache related values without needing to hit database twice

2009-03-10 Thread Collin Grady
I think you should look at select_related() to solve most of those cases. -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email

Re: Creating objects with references together

2009-03-16 Thread Collin Grady
kwargs) > File "C:\Development\Python25\Lib\site-packages\django\contrib\auth > \decorators.py" in __call__ >  67.             return self.view_func(request, *args, **kwargs) > File "C:\Development\googleapp_projects\busa\..\mysite\myapp\views.py" > in registerProdu

Re: Multiple admin forms

2009-03-20 Thread Collin Grady
Usage questions belong on the django-users mailing list. This list is for the development of django itself. -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group.

Re: #3182 -- model instance update() method and QuerySet update_or_create() method

2009-03-23 Thread Collin Grady
but not behaving like you > show. Instead he wanted it to update *just* the fields passed as > arguments. I.e. it should be equivalent to this: So more like http://code.djangoproject.com/ticket/4102 then ? :) -- Collin Grady --~--~-~--~~~---~--~~ You receiv

Re: Use RequestContext if possible in default 500 error view

2009-04-30 Thread Collin Grady
Perhaps the default 500 view could just include a few simple things like MEDIA_URL on its own? Alternatively, one can make a custom 500 handler with whatever info they want, instead of using django's default :) -- Collin Grady --~--~-~--~~~---~--~~ You rec

Re: Debugging unit test?

2009-05-10 Thread Collin Grady
bit buggy still and the unit tests > seem to have real issues with the debugger at the moment. > > > -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: Decision for ticket #6362 - Remove blank spaces with strip when validating the data

2009-05-13 Thread Collin Grady
t can be revisited. Even if you got a decision right now, it would never have a chance of making it in to 1.1, so rushing the decision would be pointless anyway. -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: MEDIA_URL template tag/context processor/etc again

2007-05-28 Thread Collin Grady
+1 on #1278 :) I think RequestContext is the better way of doing it - I think MEDIA_URL is every bit as common to use as the user info provided by the auth context processor, and that wasn't done with a tag either :) --~--~-~--~~~---~--~~ You received this messag

Re: Allowing multiple {% block %}s in one template

2007-06-08 Thread Collin Grady
This came up on IRC the other day and I had an idea on the subject - I'm not sure if this would actually work well or not, but it can't hurt to toss it out there :) I was thinking of some format like so: {% block foo,bar %}New content{% endblock %} And having that now override both foo and bar.

Re: 4102, updating only specific fields / dirty flag

2007-06-26 Thread Collin Grady
I was trying to bump the previous thread: http://groups.google.com/group/django-developers/browse_thread/thread/b8e2eaa6b5190b19/7e608ee8822d3a60 But Google Groups won't let me reply to it (maybe it's too old?) ;) The reason was the new patches, with the attempt at a 'dirty' flag so that it on

Re: 4102, updating only specific fields / dirty flag

2007-06-29 Thread Collin Grady
es an extra kwarg on __init__ - this may not be optimal so that may make things lean back towards the former method of adding an arg to save, but I'm not sure. -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: urlconf, strings vs. callables

2007-07-10 Thread Collin Grady
On Jul 10, 6:20 am, Carl Karsten <[EMAIL PROTECTED]> wrote: > apply decorators? do tell... > > (sorry to turn this into a d-user post...) > > Ideally I would like to apply it to this whole tree: > > (r'^eventcal/', include('eventcal.urls')), You can apply it to specific views, not to an in

Re: Translated fields

2007-07-12 Thread Collin Grady
Have you seen http://code.google.com/p/i18ndynamic/ ? :) On Jul 11, 3:16 pm, Marc Garcia <[EMAIL PROTECTED]> wrote: > Hi all! > > I've been searching for a way to create a multilingual catalog with > django, and there is just one thing missing, a simple way for > translating information on databa

Re: Unicode Keys

2007-07-12 Thread Collin Grady
Passing raw GET params into a function seems like a recipe for disaster if you fail to validate something properly. Plus, unicode is allowed to be used as get/post keys, so not supporting it in the dict keys would cause problems. For instance, if I have an input with name="語" and request.POST do

Re: Move form_for_instance and form_for_model into django.db.models.Model?

2007-07-12 Thread Collin Grady
This doesn't seem a far step from the model fields being able to return appropriate form fields, which they already do, so there's some tie-in already :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django devel

Adding support for ~ to Q objects (negation)

2007-07-12 Thread Collin Grady
Simon requested I bring this up here - I was working through a problem with a user on IRC, and he noted that Q objects support the bitwise & and |, but not ~ - if you wanted to negate a Q object, you had to explicitly import QNot and use that instead. As such, the following patch was born, allo

Re: Adding support for ~ to Q objects (negation)

2007-07-13 Thread Collin Grady
Added a few tests and docs - not sure how good they are, but better than nothing :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@g

Re: Improvement suggestion for {% url %}

2007-08-08 Thread Collin Grady
Couldn't you just use reverse() in your custom tag? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe f

Re: contrib.auth.models.User and related_name on 'groups' attribute

2007-08-09 Thread Collin Grady
group_obj.user_set.all() /is/ available :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this

Re: Maybe we need more triagers? Or something else?

2007-08-10 Thread Collin Grady
I like the idea of the voting app - there are several tickets I would +1 already ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@g

Re: Feedback on alternate comments app

2007-08-12 Thread Collin Grady
This post may be better suited for the django-users list. This list is for the discussion of the development of django itself, not apps that use django. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django devel

Re: Newforms suggestions - pre_clean? magic cleaned_data? - access to errors?

2007-08-13 Thread Collin Grady
t's being called for. :) Unless that change does make it in, I don't see how you could do anything at all in there, unless you just wanted to return a static value :) -- Collin Grady I'm going to Boston to see my doctor. He's a very sick man. -- Fred Allen --

Re: Proposal: runserver --with-fixture

2007-08-13 Thread Collin Grady
f you start runserver off foo.json and edit the database, those edits will then be present in foo.json on exit, so you dont have to manually load/edit/dump. Not to do some sort of logging of python actions into a test somehow :) -- Collin Grady I use technology in order to hate it mo

Re: manage.py idea?

2007-08-15 Thread Collin Grady
Rob Hudson said the following: > Would it be worthwhile to add a way to purge unused content types via > manage.py? It could look at INSTALLED_APPS and anything not installed > it removes? Wouldn't reset do that? ./manage.py reset auth contenttypes -- Collin Grady "Die

Re: manage.py idea?

2007-08-15 Thread Collin Grady
David Danier said the following: > Even if it did the id's might have changed and any generic relations be > broken. Shouldn't really be an issue with his scenario though, since he said this was during initial dev on the data model, so he wouldn't even have much (if any) da

Re: Newforms suggestions - pre_clean? magic cleaned_data? - access to errors?

2007-08-15 Thread Collin Grady
SmileyChris said the following: > The solution is that clean_* methods should just be passed the field's > value as an argument. > Even being backwards incompatible, I think it needs to be done. +1, passing them the value makes much more sense, IMO. -- Collin Grady I wouldn'

Re: Only update modified fields

2007-08-15 Thread Collin Grady
airly surprised something like this > isn't > already the default behavior. The newer patches on the ticket do what you describe - transparently track attribute changes and only include those which changed in the updates :) -- Collin Grady The most important service rendered by the

Re: Only update modified fields

2007-08-15 Thread Collin Grady
the dirty set when it doesn't exist, and only have the partial updates kick in if it does - so if you were to replace __setattr__ and didn't call the model's version, it would just revert to saving everything. -- Collin Grady I bought some used paint. It was in the shape

Re: Only update modified fields

2007-08-15 Thread Collin Grady
issue, or is there another issue you haven't mentioned? :) If that is what you're referring to, I'll get to work on fixing it :) -- Collin Grady Man's reach must exceed his grasp, for why else the heavens? --~--~-~--~~~---~--~~ You received this me

Re: Adding SVN revision identifier to version

2007-08-17 Thread Collin Grady
Deryck Hodge said the following: > Certain (older?) versions of the entries file are XML. We would need > to figure out how many versions there are, which doesn't do much for > future proofing us. Perhaps only fall back to the client if the 4th line isn't a rev #

Re: Multiple PKs and "is_stored"

2007-08-30 Thread Collin Grady
ption since the row already existed but it would be trying to insert. -- Collin Grady Change your thoughts and you change your world. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers

Re: permission_required sends user to login, even if already logged in

2007-09-12 Thread Collin Grady
s who aren't logged in to be sent to the login page. http://www.djangosnippets.org/snippets/254/ ? :) -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: mod_python documentation issues

2007-09-15 Thread Collin Grady
rver allows a lot of relative things that it shouldn't. -- Collin Grady We are using Linux daily to UP our productivity - so UP yours! -- Adapted from Pat Paulsen by Joe Sloan --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Visual recogintion of Django website

2007-09-15 Thread Collin Grady
icons - and > yes, most of the time, I have so many tabs open that I cannot see the > title of the web pages. Normally people don't pack tab bars that tiny though, so there would still be text to ID tabs by also :) -- Collin Grady Whom computers would destro

Re: Looking for discussion on #5535

2007-09-19 Thread Collin Grady
/is/ referring to the local column, it just magically drops the join on you, even though it looks like it will do one :) -- Collin Grady Save the whales. Collect the whole set. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Do you need more committers/triagers?

2007-09-19 Thread Collin Grady
rk on something that's about to be completely replaced - it's better to add it to the new code, so you only have to write it once. -- Collin Grady I'm not proud. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Looking for discussion on #5535

2007-09-19 Thread Collin Grady
t_or_create() that don't :) -- Collin Grady BOFH excuse #150: Arcserve crashed the server again. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email t

Re: Looking for discussion on #5535

2007-09-19 Thread Collin Grady
ugh* .get(pk=1) :) -- Collin Grady "MacDonald has the gift on compressing the largest amount of words into the smallest amount of thoughts." -- Winston Churchill --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Looking for discussion on #5535

2007-09-19 Thread Collin Grady
ill on David's side in thinking that allowing bar_id in get, create, and get_or_create is far more consistent, since you can also use bar_id as a normal attribute lookup and as a kwarg in making a model instance. It just seems abnormal that it works everywhere /except/ .get() and .get_or_creat

Re: Looking for discussion on #5535

2007-09-20 Thread Collin Grady
ed that obj.fkeyname is the object, and obj.fkeyname_id is the ID, so why break that? It's far more consistent to just make fkeyname_id work in .get() and .get_or_create(), in my opinion. -- Collin Grady Don't let your status become too quo! --~--~-~--~~~--

Re: MEDIA_URL and trailing slash (documentation)

2007-09-23 Thread Collin Grady
ageField, it will already be using MEDIA_URL in the get_fieldname_url function, so there'd be no reason to attach it to MEDIA_URL after the fact. -- Collin Grady When you're ready to give up the struggle, who can you surrender to? --~--~-~--~~~---~--~---

Re: Looking for discussion on #5535

2007-09-24 Thread Collin Grady
mal, and everything continues on. You'd only have to fallback to attname if you don't find a matching field name. -- Collin Grady "Life is too important to take seriously." -- Corky Siegel --~--~-~--~~~---~--~~ You received this me

Re: Missing imports in sessions?

2007-09-25 Thread Collin Grady
George Vilches said the following: > Can someone else verify this is a problem? I didn't think that os or > time was an implicit import. :) You're right, they're not :) -- Collin Grady I know things about TROY DONAHUE that

Re: Queryset in newforms

2007-09-27 Thread Collin Grady
llback, that's what it's for :) -- Collin Grady A boss with no humor is like a job that's no fun. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to

Re: Queryset in newforms

2007-09-27 Thread Collin Grady
checked the formfield method of ManyToManyField, and you can pass the queryset directly to that, so it will use that when it generates the field instead of whatever it would normally default to. -- Collin Grady --~--~-~--~~~---~--~~ You received this message beca

Re: Queryset in newforms

2007-09-27 Thread Collin Grady
hat if you have multiple m2ms to multiple model types? Your proposal wouldn't support that - it would pass the same queryset to all of them, which is invalid. The proper solution for this is your own formfield_callback, not trying to make form_for_* handle one narrow situation so that you don&#

Re: Queryset in newforms

2007-09-28 Thread Collin Grady
mited solution. So as you can see, the ability to replace the queryset already exists, and in a much better form :) -- Collin Grady The meta-Turing test counts a thing as intelligent if it seeks to devise and apply Turing tests to objects of its own crea

Re: Display name for Models in admin

2007-10-01 Thread Collin Grady
as "Item statuss"- is there a way, short > of renaming my model class, to change how the model name appears in > the admin? This question is more suited for django-users - this list is for the development of django itself, not gener

Re: Another urlpatterns proposal (add method column)

2007-10-03 Thread Collin Grady
named URLs, which is already the solution for multiple routes to the same view :) -- Collin Grady When a person goes on a diet, the first thing he loses is his temper. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: OverflowError: mktime argument out of range

2007-10-05 Thread Collin Grady
Please don't post questions to both django-users and django-dev. Django-users is for general help questions such as this, while django-dev is for discussion of the development of django itself, not help questions :) -- Collin Grady --~--~-~--~~~---~--~

Re: Proposal: shortcut to display one field from newforms

2007-10-29 Thread Collin Grady
insert chunks of repeating code into their templates or > write custom inclusion tags. On the other hand, it's kind of an edge case, since if you're using the same set of tags for every field, it quite limits the amount of customized layout you can do :) -- Collin Grady --~--~

  1   2   >