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

2009-05-13 Thread Collin Grady
ow. Once 1.1 is out, it 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 be

Re: Debugging unit test?

2009-05-10 Thread Collin Grady
e Python plugin but it's a 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 "D

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 received

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

2009-03-23 Thread Collin Grady
`update()` method too 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 --~--~-~--~~~--

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" grou

Re: Creating objects with references together

2009-03-16 Thread Collin Grady
self.view_func(request, *args, **kwargs) > File "C:\Development\googleapp_projects\busa\..\mysite\myapp\views.py" > in registerProduct >  63.             f.save() > File "C:\Development\googleapp_projects\busa\..\mysite\myapp\forms.py" > in save >  76.         ma

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: 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 <paulo.scard...@gmail.com> wrote: > > On Feb 27, 5:28 pm, Collin Grady <col...@colling

Re: Creating "lazy" foreign keys

2009-02-24 Thread Collin Grady
her(self): >> try: >> return _other >> except Other.DoesNotExist: >> 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

Re: Creating "lazy" foreign keys

2009-02-22 Thread Collin Grady
in exchange 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 <col...@collingrady.com> wrote: >> Seems you could just use an IntegerField and do it yourself, instead >> of exp

Re: Creating "lazy" foreign keys

2009-02-22 Thread Collin Grady
ly 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 seams normal in your

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

2009-02-20 Thread Collin Grady
> 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? > > > -- Co

Re: Problem with ORM

2009-01-15 Thread Collin Grady
, and you're then saving it. 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 --~--~-~--~~~-

Re: Problem with ORM

2009-01-14 Thread Collin Grady
g it just reinserts a new copy 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, s

Re: view permission for contrib.admin

2008-12-18 Thread Collin Grady
On Thu, Dec 18, 2008 at 8:30 AM, gert <g...@ise.co.za> 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. --

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

2008-12-17 Thread Collin Grady
al - dummy does not cache 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. -

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" grou

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

2008-11-18 Thread Collin Grady
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 django-devel

Suggestion for doc search

2008-11-15 Thread Collin Grady
t they 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: login_required

2008-11-10 Thread Collin Grady
and it 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 emai

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" grou

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: Proposal: remove auth context processor dependancy for Admin

2008-11-03 Thread Collin Grady
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. -- Collin Grady --~--~-~--~~~---~-

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-de

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: 'unicode' object has no attribute 'user'

2008-09-18 Thread Collin Grady
f, 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-developers@googlegroups.c

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 email

Re: bug in forms

2008-09-16 Thread Collin Grady
_data 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 I see you calling fo

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
data 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

newforms-admin and urls (reverse/etc)

2008-07-07 Thread Collin Grady
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!" -- Royal Floyd Men

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

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. -- Graham Greene

Re: MySQL exact/iexact lookups change

2008-06-30 Thread Collin Grady
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 developers" group. To post to this gr

Re: More secure user password reset

2008-06-27 Thread Collin Grady
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" --~--~-~--~~~---~--~~ You received t

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? :) -- Collin Gr

Re: RegexURLResolver.resolver can fall through and return None

2008-06-26 Thread Collin Grady
tes 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 received this message be

Re: more DDN Tickets

2008-06-25 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: List of DDN Tickets

2008-06-23 Thread Collin Grady
ds 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 developers" group. To po

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: 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. -- Leonard Levin

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: 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 are subscri

Request for review

2008-06-12 Thread Collin Grady
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 this message b

Re: Is there a django meta model ?

2008-06-12 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 "Djan

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: 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 peo

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 others belie

Probable bug in templates - default tags not always loading properly

2008-06-05 Thread Collin Grady
the 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. -- Dr. Greg

Re: ERROR:cannot import name Post -- while using django signals

2008-05-28 Thread Collin Grady
Usage questions belong on 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 this g

Re: Object list with values to ForeignKey and ManyToMany

2008-05-27 Thread Collin Grady
Usage questions such as this should go to the django-users mailing list. The django-developers list is for the development of django itself, not just for developers who use django. -- Collin Grady Some people live life in the fast lane. You're in oncoming traffic

Re: document based database

2008-05-20 Thread Collin Grady
bedros said the following: > are you guys aware of any document based database open source > implementation in Python such as strokeDB for Ruby This question does not belong on this list - this list is for the discussion of the development of django itself, not for other questions. --

Re: Django vs. Oracle application

2008-05-20 Thread Collin Grady
on would fit better on django-users - the django-developers list is for development of django itself, not general topics regarding developing with django. -- Collin Grady And ever has it been known that love knows not its own depth until the hour of separation. -- K

Re: On aggregates

2008-05-13 Thread Collin Grady
ey select in order to get distinct is absolutely idiotic, so why even suggest it? .distinct() maps to DISTINCT, and even if in some way its identical, there's no harm leaving it for the ease of use. -- Collin Grady "If you don't want your dog to have bad breath, do what I do: Pour a li

Re: On aggregates

2008-05-13 Thread Collin Grady
David Cramer said the following: > If that is the case, then annotate would replace GROUP BY, and should > also be able to replace distinct(). Why would replacing distinct() ever make any sense? -- Collin Grady --~--~-~--~~~---~--~~ You received this m

Re: Paginator Backwards Compatibility Post

2008-05-05 Thread Collin Grady
SmileyChris said the following: > You were using a new feature (albeit the wrong one) so that's not > really a backwards incompatible issue, is it? The old ObjectPaginator class is going away though, isn't it? That sounds like backwards incompatible to me ;) -- Collin Grady Co

Re: Django port on OpenVMS - Oracle/Rdb backend

2008-05-01 Thread Collin Grady
so that they're threaded in. -- Collin Grady Measure with a micrometer. Mark with chalk. Cut with an axe. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this g

Re: Django port on OpenVMS - Oracle/Rdb backend

2008-05-01 Thread Collin Grady
Steve Holden said the following: > If you want considered opinions you would do well to wait longer than 51 > minutes! You should check the date as well as the time; he sent the first email *two days* before the second. -- Collin Grady BOFH excuse #244: Your cat tried to eat the

Re: QSRF Related

2008-04-29 Thread Collin Grady
; may break your code, especially if you're using undocumented internals. -- Collin Grady A professor is one who talks in someone else's sleep. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers&qu

Re: QSRF Related

2008-04-29 Thread Collin Grady
with qsrf, so when it merged, all the new docs were merged in also, just mixed in with the normal db-api and model-api pages, among others. -- Collin Grady Give a man a fish, and you feed him for a day. Teach a man to fish, and he'll invite himself over for dinner.

Re: Newforms DateField/DateTimeField initial value rendering

2008-04-08 Thread Collin Grady
Simon Litchfield said the following: > Tad ugly though, don't you think? Most platforms/languages/frameworks > handle the MDY/DMY situation relatively elegantly using some kind of > setting. Well I wasn't pitching it as the best solution, just *a* solution :p -- Collin Grady Of

Re: Newforms DateField/DateTimeField initial value rendering

2008-04-08 Thread Collin Grady
at string, kinda like input_formats. I haven't tried to use it, but couldn't a DateTimeInput widget with those fields solve the problem? It accepts a format arg which is how it will render its data - combined with the right input_formats in the field, it stands to reason that would work :) -- Co

Re: django.contrib.sessions problems

2008-04-03 Thread Collin Grady
s completely separate. Except request.user is loaded by using a user id stuffed in session, so they are definitely tied together right now :) -- Collin Grady The reward of a thing well done is to have done it. -- Emerson --~--~-~--~~~---~--~~

Re: Pick a value from list variable in templates

2008-03-06 Thread Collin Grady
variable and the other a string. -- Collin Grady Albrecht's Law: Social innovations tend to the level of minimum tolerable well-being. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers"

Re: Pick a value from list variable in templates

2008-03-05 Thread Collin Grady
need to stop trying to use things with double meanings :) -- Collin Grady War is peace. Freedom is slavery. Ketchup is a vegetable. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group.

Re: Pick a value from list variable in templates

2008-03-04 Thread Collin Grady
vcc said the following: > How about: {{ foo.__bar__ }} ? Except you can't use _ as the first character in a template lookup like that, and the __foo__ naming method is already taken by existing things like __get__, __contains__, and other such methods/attributes :) -- Collin Grady Necess

Re: Ticket #6705

2008-03-04 Thread Collin Grady
Dj Gilcrease said the following: > On Tue, Mar 4, 2008 at 10:59 AM, James Bennett <[EMAIL PROTECTED]> wrote: >> Thoughts? > > he cant do something like http://dpaste.com/38006/ ? Should probably be field.label instead of field.label_tag, no? :) -- Collin Grady &qu

Re: Pick a value from list variable in templates

2008-03-03 Thread Collin Grady
say, 3, and have a way to do foo.bar where it's really doing foo.3 Hence the filter looking it up by the value of the variable, not as a string. -- Collin Grady "Fantasies are free." "NO!! NO!! It's the thought police" --~--~-~--~~~---

Re: ADMIN_MEDIA_PREFIX default value (#2891)

2008-02-18 Thread Collin Grady
Collin Grady said the following: > The ticket is still "Closed: wontfix" which looks ignored to me :) It's been pointed out to me that the tone of my messages could come off a bit rude - I did not intend that, and I apologize if that is the case. -- Collin Grady The reader

Re: ADMIN_MEDIA_PREFIX default value (#2891)

2008-02-18 Thread Collin Grady
Malcolm Tredinnick said the following: > It's hardly been ignored. There was quite a spirited thread last time it > came up. The ticket is still "Closed: wontfix" which looks ignored to me :) -- Collin Grady Just remember, wherever you go, there you are. --

ADMIN_MEDIA_PREFIX default value (#2891)

2008-02-18 Thread Collin Grady
, but we're only focusing on it because it's been ignored, and it's wasting far more time for the users who constantly hit the issue due to the poor default setting. [1] http://code.djangoproject.com/ticket/2891 -- Collin Grady Matter will be damaged in direct proportion to its value

Re: Form as Table

2008-02-13 Thread Collin Grady
of this nature should be directed to the django-users list. This list is for the discussion of the development of django itself, not on how to do things using it :) -- Collin Grady BOFH excuse #101: Collapsed Backbone --~--~-~--~~~---~--~~ You received th

Re: newsform Addition

2008-02-13 Thread Collin Grady
rective...> > > > > {{ item[0] }} -- {{ item[1] }} -- {{ item[2] }} > {{ item[3] }} > {{ item[4] }} > These can already be done, just loop over the form, or use the manual items like {{ form.fieldname }}, {{ form.fieldname.label_tag }}, {{ form.fieldname.errors }}

Re: [7084] extends headaches

2008-02-05 Thread Collin Grady
that this is a backwards incompatible change, myself. -- Collin Grady All celebrity voices impersonated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this grou

ModelForms w/no pre-set model

2008-01-10 Thread Collin Grady
orks. [1]http://groups.google.com/group/django-developers/browse_thread/thread/8774da1fd5b77eb1 -- Collin Grady Anyone can make an omelet with eggs. The trick is to make one with none. --~--~-~--~~~---~--~~ You received this message because you are

#django registration

2007-12-27 Thread Collin Grady
to mind so maybe it could be dealt with in the new year if someone has some spare time :) -- Collin Grady "If anything can go wrong, it will." -- Edsel Murphy --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Simple Generic Views, Login_Required

2007-12-26 Thread Collin Grady
syntax used. However, with svn, you can inline the login_required right in urls.py; from django.views.generic import simple #... (r'^foo/$', login_required(simple.direct_to_template), info_dict), -- Collin Grady Hearts will never be practical until they can be made

Re: Odd MySQL bug

2007-12-20 Thread Collin Grady
-+ | 0 | +----+ 1 row in set (0.00 sec) -- Collin Grady (1) Never draw what you can copy. (2) Never copy what you can trace. (3) Never trace what you can cut out and paste down. --~--~-~--~~~---~--~

Re: Odd MySQL bug

2007-12-20 Thread Collin Grady
AmanKow said the following: > Any mysql gurus out there with some advice as to how to turn off this > behavior? The mysql docs and several things I've found online (including code from Rails) indicates that simply "SET SQL_AUTO_IS_NULL=0" should work, unless they broke it :)

Re: Reconsider ADMIN_MEDIA_PREFIX default?

2007-12-18 Thread Collin Grady
.py template that includes a value for ADMIN_MEDIA_PREFIX, I think you're overestimating how many people would actually be impacted, since I think most of them would be using a file based on that :) -- Collin Grady In space, no one can hear you fart. --~--~-~--~~~---~--~~

Re: Better Support for static file serving via django

2007-12-11 Thread Collin Grady
Mike Scott said the following: > Is this an approach the bulk of the Django community are interested in > taking or is it something that we should leave to the things that do it > best, ie: Apache and the like. -1 to handling media through Django, that's the job of the webserver :) -

Re: Models to keep a copy of their last saved values?

2007-12-10 Thread Collin Grady
http://code.djangoproject.com/ticket/4102 -- Collin Grady If condition persists, consult your physician. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this g

Re: ModelForm.__init__() argument signature versus other newforms forms

2007-12-10 Thread Collin Grady
edly, I don't know ModelForms very well yet, so I could be missing something :) -- Collin Grady Earth is a beta site. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this

Re: django and plesk vhosts.conf

2007-12-07 Thread Collin Grady
Use/setup/etc questions should be directed to django-users, as django-developers is for the discussion of the development of django itself :) -- Collin Grady Paranoia is heightened awareness. --~--~-~--~~~---~--~~ You received this message because you

Re: Best way to update only certain fields on a model instance?

2007-11-23 Thread Collin Grady
ou tell it what to save, while the later ones auto-detect modified fields. -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send e

Re: Getting Images to display in Development Environment

2007-11-21 Thread Collin Grady
Don Spaulding said the following: > into the irc channel (#python on irc.freenode.net) to get the help I think you mean #django on irc.freenode.net :) -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Python history won't work in Django shell (maybe found bug?)

2007-11-13 Thread Collin Grady
even when ipython isn't present, so it should be parsing the normal stuff in that case, right? -- Collin Grady A robin redbreast in a cage Puts all Heaven in a rage. -- Blake --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: Model post_save doesn't play well with Model.save overriding

2007-11-12 Thread Collin Grady
Jeremy Dunck said the following: > I feel OK about having to manually call post_save when I override > Model.save, but adding it now just results in post_save being called > twice. Couldn't you just fire your own signal? :) -- Col

Re: DecimalField returns default value as unicode string.

2007-11-08 Thread Collin Grady
[EMAIL PROTECTED] said the following: > Not sure why, but when I tried to submit a ticked for this it was > rejected repeatedly as suspected spam. If you register for a trac account it should avoid that issue. -- Collin Grady Academic politics is the most vicious and bitter form of po

Re: Overriding a Model's save() method does not allow proper creation of ManyToMany related objects

2007-11-07 Thread Collin Grady
ar to me. ;) It's not meant to do absolutely everything though - trying to hack it to do something it doesn't is usually harder than writing a really simple custom view :) -- Collin Grady If I had any humility I would be perfect. -- Ted Turner --~--~-~--~~--

Re: Overriding a Model's save() method does not allow proper creation of ManyToMany related objects

2007-11-07 Thread Collin Grady
Dmitri Fedortchenko said the following: > Still, the most logical course is to override the save method. I'd say the more logical course is to stop using admin for this ;) -- Collin Grady QOTD: "If I'm what I eat, I'm a chocolate chi

Re: Proposal: shortcut to display one field from newforms

2007-10-29 Thread Collin Grady
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 --~--~-~--~~~---

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 --~--~-~--~~~---~--~~ You

Re: Another urlpatterns proposal (add method column)

2007-10-03 Thread Collin Grady
med 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 &qu

Re: Display name for Models in admin

2007-10-01 Thread Collin Grady
quot;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 general help qu

Re: Queryset in newforms

2007-09-28 Thread Collin Grady
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 creation.

Re: Queryset in newforms

2007-09-27 Thread Collin Grady
ld 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 because you are s

Re: Queryset in newforms

2007-09-27 Thread Collin Grady
iple 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't have to write one. --

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 can't even be P

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 messa

  1   2   >