Hi,
I just found out that you can only use one ordering key in the
ordering. Is this true? If so, what can I do to have ordering on 2
keys
instead? (short of overriding the admin, and writing my own custom
class)
Thanks,
sanrio
--~--~-~--~~~---~--~~
You receive
Hi,
Sorry for not checking it further.
I think the problem was on my end.
It actually does work.
Thanks,
sanrio
On Oct 13, 10:26 am, meppum <[EMAIL PROTECTED]> wrote:
> What do you mean "this did not work"? did you get an error? or did the
> logic in model a's save not run?
>
> On Oct 13, 11:1
Can anyone help?
Thanks,
sanrio
On Oct 10, 11:30 am, [EMAIL PROTECTED] wrote:
> Hi,
>
> How does the save work, if you have a base abstract class that has
> save, and the parent class has save?
>
> For example:
>
> Model A:
>save(self):
> super(A, self).save()
>
>class Meta:
>
Hi,
How does the save work, if you have a base abstract class that has
save, and the parent class has save?
For example:
Model A:
save(self):
super(A, self).save()
class Meta:
abstract=True
Model B(A):
save(self):
# Some stuff
super(B, self).save()
Thi
Thanks Rajesh.
This will work. Unfortunately, the last_login field gets overwritten
every time
the user logs in, but at least, it gives me a starting point.
Thanks,
sanrio
On Oct 2, 3:41 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> > I have an application based around the admin. Is there a wa
Hi all,
I have an application based around the admin. Is there a way to find
out which users have logged on to the application? I know I could
add logs to the views, but I have several requests that simply go to
the
admin, and do not have "views" associated with them.
I know the database has dja
Hi,
I am using newforms-admin. Is it possible to define a new field, and
use that
custom field in the "fieldsets tuple?
I tried it, and if I don't have fieldsets defined in my model, then
the custom
model shows. But once I define it, it complains, saying that custom
field
not defined in form.
T
It
would have
worked if I only have one digit for student. However, I have hundreds
of students, so that would
not work.
Is there hope for a solution? Thanks,
sanrioyt
On Feb 22, 4:35 pm, Julien <[EMAIL PROTECTED]> wrote:
> Hi,
>
> If I recal, you need to repeat the variable name i
e a way to only let it translate to: student__id__in('15','2')
It seems very simple, but I did not know how to do it.
Thank you for your responses.
sanrioyt
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&qu
Hello All,
I am trying to do some filtering in the admin. I am using a
combination of
javascript and jQuery to accomplish that.
I have few questions:
1) Can I pass where OR queries in the URL? If so, what is the syntax?
2) I tried using IN in the URL. That has the following behavior:
if I
Hi whiteinge,
OK. I was using firefox and that did not work. But with IE
it works well.
Thanks,
sanrio
On Feb 7, 9:08 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote:
> On Feb 7, 3:06 pm, [EMAIL PROTECTED] wrote:
>
> > Can you please give an example of what the list_filter be
> > in the model
Hi whiteinge,
I downloaded the example you have posted on djangosnippets and
put it in the "suggested" place. However, I could not get it to work.
(I am very novice regarding jQuery).
Can you please give an example of what the list_filter be
in the model, to get the filterting to work?
Thanks,
Thanks a lot. I'll try it.
sanrio
On Feb 4, 1:18 am, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote:
> On Feb 3, 7:56 pm, [EMAIL PROTECTED] wrote:
>
> > Is there a way to select both 'A' and 'B' under affiliation and get
> > both Tom and Diane?
>
> You can use non-standard filters in the Admin by
Sorry, I guess I did not explain too well. What I am asking has to do
with
list_filter = ('affiliation', 'publication', 'research',)
in the admin.
This displays a list on the right hand side of the admin.
If I have Tom in school 'A', and Diane in school 'B'.
I can filter on affiliation on 'A', a
Hi,
How do I hook that into the Admin? This is what I don't know.
Thanks,
sanrio
On Feb 3, 4:09 pm, William Siegrist <[EMAIL PROTECTED]> wrote:
> Have you tried using the IN filter?
>
> Student.objects.filter(school__in = [A, B])
>
> http://www.djangoproject.com/documentation/db-api/#in
>
> -Bi
Hi,
I have a situation whereby I need to use filters with "OR" .
Here is a description of my model:
1) A student affiliated to only one school. (ForeignKey)
2) A student can only have one publication. (ForeignKey)
3) A student can have multiple research interest(s). (ManytoManyField)
I want to
16 matches
Mail list logo