django db api: looking for "not-in select

2006-10-04 Thread Ulrich Nitsche

hi,

in the docs I found a method to
run a query like this:
MyObj.objects.filter(id__in=[1, 3, 4]).

My question is if there is a "negative"
to this like the following raw sql
"SELECT xxx FROM mytable WHERE xxx NOT IN (1, 2 ,4);"

Is there any hint in the docs that I missed?

Thanks

uli
__
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!

Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



two models -> one form -> addmanipulator

2006-09-22 Thread Ulrich Nitsche

hi,

i have two models (tables) concerning user data which belong together.
Now I would like to use one single form to display and edit these
values.
Is there a way to use one changemanipulator to do this?
Or if this is not possible is there a way to use different
changemanipulators at the same
time? 
How would this look like?

I hope my question is not too stupid, but I'm still a django newbe.

Thanks in advance!

uli



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Extending the user model raises error: ImproperlyConfigured

2006-07-15 Thread Ulrich Nitsche

Hi,
in need of an extended user model I followed the
little tutorial on 
http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model:

1. I created a model
2. I added AUTH_PROFILE_MODULE ='my_apps.my_model_name' to my setting

But when I try to get the data from my extension (like 
u.get_profile().some_field
the following error is thrown:

-->
Traceback (most recent call last):
  File "", line 1, in ?
  File "/usr/lib/python2.4/site-packages/django/contrib/auth/models.py", line 
242, in get_profile
except (ImportError, ImproperlyConfigured):
NameError: global name 'ImproperlyConfigured' is not defined
<-

any help would be appreciated,
thanks in advance

uli
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---