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
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
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
`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
--~--~-~--~~~--
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
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
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
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
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
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
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
> 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
, 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
--~--~-~--~~~-
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
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.
--
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.
-
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
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
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
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
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
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
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
--~--~-~--~~~---~-
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
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-
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
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
_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
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
--~--~-~--~~--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
) 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
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
[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
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
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
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
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
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.
--
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
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
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
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
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
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
;
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
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.
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
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
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
--~--~-~--~~~---~--~~
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"
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.
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
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
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"
--~--~-~--~~~---
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
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.
--
, 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
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
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 }}
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
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
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
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
-+
| 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.
--~--~-~--~~~---~--~
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 :)
.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.
--~--~-~--~~~---~--~~
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 :)
-
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
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
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
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
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
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
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
[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
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
--~--~-~--~~--
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
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
--~--~-~--~~~---
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
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
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
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.
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
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.
--
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
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 - 100 of 135 matches
Mail list logo