I'm not sure on AggreateField either. What if you just do like
("Photo", "user__exact=self.user") or something. Currently there's no
rerepsentation for "self" in Django QuerySet's, so this is a hard
thing to call. Also, we need a way to support callables.
e.g.
One of the last of my feature-needs (for optimization reasons) is the
ability to specify what fields can, or can't be ordered in the admin
apps.
I'd like to propose something along the lines of:
order_by_fields = ('field', 'field', 'field')
This would allow you to only order by fields
While I've been working on composite primary keys, I also made a few
tweaks to the admin app. Most of these are related to the primary key
support, but one is an optimization.
I would post this as a patch, or a ticket, but I want to open this up
for discussion, and my django repo is so far from
There are currently inconsistencies with how ModelAdmin decides on
what query set (i.e. manager) it's using.
Issue 1: The change list it uses ModelAdmin.queryset() while the
change view uses ModelAdmin.model._default_manager
Issue 2: Also, when searching, ChangeList uses the base QuerySet model
On Mon, Nov 10, 2008 at 3:38 PM, Sebastian Bauer <[EMAIL PROTECTED]> wrote:
> but we can do this "little" modification in v1.1
>
> i think this change will allow site administrator to ban users throughchange
> is_active flag
>
> Waylan Limberg pisze:
>
> On Mon, Nov 10, 2008 at 2:49 PM,
but we can do this "little" modification in v1.1
i think this change will allow site administrator to ban users through
change is_active flag
Waylan Limberg pisze:
> On Mon, Nov 10, 2008 at 2:49 PM, Sebastian Bauer <[EMAIL PROTECTED]> wrote:
>
>> Hello, i think login_required should check
On Mon, Nov 10, 2008 at 11:49 AM, Sebastian Bauer <[EMAIL PROTECTED]> wrote:
> Hello, i think login_required should check that user is not only
> authenticated, but also if is active. What do you think about this change?
I think you can write your own decorator to do that, and it would be a
On Mon, Nov 10, 2008 at 2:49 PM, Sebastian Bauer <[EMAIL PROTECTED]> wrote:
>
> Hello, i think login_required should check that user is not only
> authenticated, but also if is active. What do you think about this change?
>
I see two problems with this:
1. This current behavior is fully
Not intending to derail the test-skip angle (which sounds generally
useful), but in this case, wouldn't a better fix be to eliminate the
dependency on admin, by providing the needed templates in the auth
test suite itself? PasswordResetTest could also duplicate the setup/
teardown methods used
Hello, i think login_required should check that user is not only
authenticated, but also if is active. What do you think about this change?
Sebastian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
Hello Colling
ok, but then did a test and saw that this problem is a bug in Django,
with the database sqlite works, but is giving problems with postgresql
On 7 nov, 01:38, "Collin Grady" <[EMAIL PROTECTED]> wrote:
> Usage questions belong on the django-users list - this list is for the
>
A Mele wrote:
> I have followed the discussions about denormalization and I really
> would like to see this in trunk. I agree with Rusell, the syntax
> should be more like Django's query syntax, but I think this kind of
> field is very useful for a lot of projects.
>
I obviously agree, but
Please post your question to djang-users. This list is for discussion of
developing Django itself, not usage questions.
Karen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to
I have a form with fields "num1" and "num2".
Both are FloatField.
In templates, i have too use something like the following:
First Number:
{{ form.num1}}
{% if form.num1.errors %}
{{ form.num1.errors|join:", " }}
{% endif %}
Second Number:
{{
when my ubuntu8.10 not connect the Internet ,i use command “python
manage.py runserver” and use firefox to view
http://127.0.0.1:8080but it‘s strange that nothing show,no “it
worked” page. but when connect the Internet it show the "it worked"
page. i don't know why? it take too much money
15 matches
Mail list logo