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
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
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
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
> 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.
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.
-
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
[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
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
) 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
/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
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
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
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
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
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
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
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
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? :)
--
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"
--~--~-~--~~~--
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
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
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
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!"
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
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
--~--~-~--~~--
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
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
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
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-
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
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
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
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
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
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
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
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
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.
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
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
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
.
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
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?
> >
>
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
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
;> 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
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
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
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
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
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.
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
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
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
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
+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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
--
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
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
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
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'
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
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
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
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 #
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
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
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
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
/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
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
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
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
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
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!
--~--~-~--~~~--
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?
--~--~-~--~~~---~--~---
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
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
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
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
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
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
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
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
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
--~--~-~--~~~---~--~
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 - 100 of 145 matches
Mail list logo