Re: UTF8 character set problem

2006-10-27 Thread Pythoni
I used mysqldump --default-character-set=utf8 mimi >/home/Result.sql to export data to /home/Result.sql file on Linux machine. Then I downloaded the file to my XP and here I used mysql --default-character-set=utf8 mimi < Result.sql to import data. Is it correct? Regards, L. --~--~-~-

Re: import django in a Python script?

2006-10-27 Thread Rob Hudson
> If it was me wanting to generate a static site like this (I had to go > and look up what SCORM was), I would use the wget solution. It's fast > and a is going to extract pretty much exactly what a generic user will > see (the differences will be if you have any content that varies on > cookies o

Re: Problem with Development Server?

2006-10-27 Thread samuraisam
> I suspect this is because the development server is single threaded. > That means one request at a time. So if another thread is tying up the > request processing, your first thread is out of luck. > > Regards, > Malcolm The other thread waits several seconds before trying the pingback, and I w

Re: ManyToMany "Cannot resolve keyword"

2006-10-27 Thread NakedHTML
Malcolm Tredinnick wrote: > We may need a bit more information there. It sounds like (from the title > of this email, which isn't mentioned anywhere else here) like one of the > fields you are expecting to be non-null is empty and so the related > instance doesn't exist and you can't query agains

Re: ManyToMany "Cannot resolve keyword"

2006-10-27 Thread Malcolm Tredinnick
On Sat, 2006-10-28 at 01:55 +, NakedHTML wrote: > I've been looking through the archives here and goggeling around trying > to resolve what I am sure is a simple problem. > > I am trying to do the following: > > 1) Display an article > 2) Display the reporter (many to many field) > 3) Displa

Re: import django in a Python script?

2006-10-27 Thread Malcolm Tredinnick
On Fri, 2006-10-27 at 18:21 -0700, Rob Hudson wrote: > We're looking at a way to "script out" a Django database driven website > to static HTML files to be used to bundle and build a SCORM package. > > At first I thought we could simply wget the version on the server and > save each file. But wh

Re: Problem with Development Server?

2006-10-27 Thread Malcolm Tredinnick
On Fri, 2006-10-27 at 22:31 +, samuraisam wrote: > I have a pingback function in the app that I'm writing which I start in > a new thread. Something like this: > > def send_pingbacks(source_uri, body): > thread.start_new_thread(_send_pingbacks_threaded, > (sett

Re: include tag and urls

2006-10-27 Thread Malcolm Tredinnick
On Fri, 2006-10-27 at 08:50 -0700, Rob Slotboom wrote: > Using an inlude tag on my homepage to get a list of current polls > requires a template. This template lists the polls and provides a link > for the details. I need to give an url including the modulename: > (a href="/polls/5") > > I don't

Re: How to get a models.Manager to stay sync'd with the database?

2006-10-27 Thread Malcolm Tredinnick
On Fri, 2006-10-27 at 06:22 -0700, doubtintom wrote: > I'm using generic view create_update.update_object to edit items > selected from a generic list_detail.object_list. Edits to items work > very well, they hit the database as soon as I submit the form in my > html template. I know because I ins

Re: I cant but woefully look at Ruby_oN_rails guys adding ranking with just

2006-10-27 Thread Malcolm Tredinnick
On Fri, 2006-10-27 at 17:10 +, [EMAIL PROTECTED] wrote: > I've got basically the same problem (trying to have rankings available > different places). I've been looking at Generic Relations and > Content_type, and think I get it on a conceptual level, but there's > something I'm missing. > >

ManyToMany "Cannot resolve keyword"

2006-10-27 Thread NakedHTML
I've been looking through the archives here and goggeling around trying to resolve what I am sure is a simple problem. I am trying to do the following: 1) Display an article 2) Display the reporter (many to many field) 3) Display related images (many to many field) The model for the complete ap

Re: Generating a choices set from data

2006-10-27 Thread Russell Keith-Magee
On 10/26/06, Ice9 <[EMAIL PROTECTED]> wrote: > > Hi, I'm kinda new to django, and I ran into a problem > I'm making a cutom form, and one of the field I want it to be > SelectField. the problem is I dont want to hard code the choices in, I > want to generate a set of choice I can use from the data

import django in a Python script?

2006-10-27 Thread Rob Hudson
We're looking at a way to "script out" a Django database driven website to static HTML files to be used to bundle and build a SCORM package. At first I thought we could simply wget the version on the server and save each file. But what seems better would be to write a script that iterates over t

Re: Smartest way to integrate pulldown menus?

2006-10-27 Thread MarcC
On Oct 27, 2:28 pm, iain duncan <[EMAIL PROTECTED]> wrote: > Just wondering if anyone has any recos for best > toolkit/library/widget/approach to adding dynamic pull down menus to a > Django app. I am leaning towards using mochikit and dojo whenever > possible because of their adoption by python f

Re: HttpResponseRedirect and Request Header

2006-10-27 Thread Mike
Hi Sam, Allow me to clarify my question: User clicks on a link(pointing to B) on site A Site B is implementing a HttpResponseRedirect to site C Site C recieves the request with the header sent from A to B. That is, it has no idea B exists. I don't want C to know about A :) Mike --~--~

Problem with Development Server?

2006-10-27 Thread samuraisam
I have a pingback function in the app that I'm writing which I start in a new thread. Something like this: def send_pingbacks(source_uri, body): thread.start_new_thread(_send_pingbacks_threaded, (settings.ROOT_URI, source_uri, body)) Which works. But if I'm pingin

Re: HttpResponseRedirect and Request Header

2006-10-27 Thread samuraisam
On Oct 27, 3:18 pm, "Mike" <[EMAIL PROTECTED]> wrote: > HttpResponseRedirect fully preserves the page header sent to it and > forwards it to whatever URL it is being sent to. For instance, if a > user is going from Google to site A, where he is immidiatly > 'HttpResponseRedirect'ed to site B, site

HttpResponseRedirect and Request Header

2006-10-27 Thread Mike
HttpResponseRedirect fully preserves the page header sent to it and forwards it to whatever URL it is being sent to. For instance, if a user is going from Google to site A, where he is immidiatly 'HttpResponseRedirect'ed to site B, site B only has knowledge of Google as apposed to site A. How can

Re: Date ranges associated with model relationships

2006-10-27 Thread Todd O'Bryan
class Peg(models.Model): history = OneToManyField(class=PegEntry) class Hole(models.Model): peg = models.ForeignKey(class=Peg, blank=True, null=True) class PegEntry(models.Model): hole = models.ForeignKey(class=Hole) start = models.DateTimeField() end = models.DateTimeField()

Re: directed graph in default admin

2006-10-27 Thread John Lenton
On 10/27/06, Waylan Limberg <[EMAIL PROTECTED]> wrote: > > I couldn't help but notice that in your example, it is also sorted by > Sink *descending*. What happens if you click on "Sink" again? If I'm > not mistaken, it should sort *ascending*. Then again, this just may be > a coincidence of a poor

Re: Syntax highlighter

2006-10-27 Thread Ivan Sagalaev
Grigory Fateyev wrote: > http://softwaremaniacs.org/blog/2006/10/18/highlight-js-java/ > You should try Ivan Sagalaev's code! The actual app is here: http://softwaremaniacs.org/soft/highlight/ And until I translate it into English it's usage should be understandable just from code examples on

Re: How to auto create a from Model just the Admin do?

2006-10-27 Thread Oliver Lavery
Well, if you simply want to generate forms for your model very easily, check out Manipulators (http://www.djangoproject.com/documentation/forms/). Generating forms for every model in your project completely automatically, like the Admin interface does, involves a bit more than just Manipulators, bu

Re: Smartest way to integrate pulldown menus?

2006-10-27 Thread RajeshD
Perhaps you want to also consider CSS-based menus featuring symantic goodness (TM): http://css-discuss.incutio.com/?page=ListMenus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: UTF8 character set problem

2006-10-27 Thread mrstone
How did you exported the data between linux and xp? Have you checked that the db table in mysql is set to utf8? cheers :-S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Smartest way to integrate pulldown menus?

2006-10-27 Thread iain duncan
Just wondering if anyone has any recos for best toolkit/library/widget/approach to adding dynamic pull down menus to a Django app. I am leaning towards using mochikit and dojo whenever possible because of their adoption by python frameworks, but I am also happy to use whatever fits. Lost in the se

Re: I cant but woefully look at Ruby_oN_rails guys adding ranking with just

2006-10-27 Thread James Bennett
On 10/27/06, John <[EMAIL PROTECTED]> wrote: > and so on... > I cant but woefully look at Ruby_oN_rails guys adding ranking with just > one line @act_as_votable and they are set.. no more bugs to fix, Do you > guys have any ideas on how to do this, somehting similar to Ehhh. I don't normally like

Re: Template Tag - Using Sessions versus Direct DB access - pros and cons

2006-10-27 Thread Don Arbow
On Oct 27, 2006, at 9:45 AM, Merric Mercer wrote: > > Many thanks Don. I figured it out, but because of issues with google > have had problems posting back. > > It turns out that I don't even have to use get_profile. Something > like > {{ user.userprofile.postcode }} works fine, where userprof

Re: I cant but woefully look at Ruby_oN_rails guys adding ranking with just

2006-10-27 Thread [EMAIL PROTECTED]
I've got basically the same problem (trying to have rankings available different places). I've been looking at Generic Relations and Content_type, and think I get it on a conceptual level, but there's something I'm missing. I'm passing the content_type (and an id) in the URL so the view will kno

Problem with session.

2006-10-27 Thread PythonistL
I changed SESSION_COOKIE_AGE value in my settings file to lower value. After an hour or so, I increased the SESSION_COOKIE_AGE value but now I can not log in neither to admin nor to my Django application. When I try to log in to admin it says: Looks like your browser isn't configured to accept co

Setting cookies expiration via SESSION_COOKIE_AGE

2006-10-27 Thread PythonistL
I changed SESSION_COOKIE_AGE to a lower value and now I can not log in to admin site. It says: Looks like your browser isn't configured to accept cookies. Please enable cookies, reload this page, and try again But the bowser does accept cookies. Eventhough I increased SESSION_COOKIE_AGE value ,

Re: Re: Template Tag - Using Sessions versus Direct DB access - pros and cons

2006-10-27 Thread Jay Parlar
On 10/27/06, Merric Mercer <[EMAIL PROTECTED]> wrote: > > Many thanks Don. I figured it out, but because of issues with google > have had problems posting back. > > It turns out that I don't even have to use get_profile. Something like > {{ user.userprofile.postcode }} works fine, where userprof

Re: Template Tag - Using Sessions versus Direct DB access - pros and cons

2006-10-27 Thread Merric Mercer
Many thanks Don. I figured it out, but because of issues with google have had problems posting back. It turns out that I don't even have to use get_profile. Something like {{ user.userprofile.postcode }} works fine, where userprofile is the name of the one-to-one class. MerMer > On Oct 26

Re: How to get a models.Manager to stay sync'd with the database?

2006-10-27 Thread doubtintom
Here's a clue. I tried hosting this project from my apache2 server using mod_python. The queryset stays in sync after updates, it works just as expected. Perhaps it is a limitation of the built in Django server, which after all, is not meant for production. Still, if there is a way to get the expe

Re: Syntax highlighter

2006-10-27 Thread Grigory Fateyev
Hello Dirk Eschler! On Sat, 21 Oct 2006 12:04:07 +0200 you wrote: > > Hello, > > does anyone use a generic syntax highlighter with Django? I want to > integrate something like GeSHi [1] in a blog-like application and i > try to find out where to start. > > 1. http://qbnz.com/highlighter/ > h

Re: Logout method returning "maximum recursion depth exceeded" - Help!

2006-10-27 Thread Merric Mercer
Thanks for all your points. I'm having real problems with Google groups. I figured out what was wrong - but was not able to post in. Now, these posts are obviously coming in - 24 late. MerMer > > Karen > > p.s. Is google groups acting up? I just got a bunch of old mails > (like this one),

Re: Template Tag - Using Sessions versus Direct DB access - pros and cons

2006-10-27 Thread Don Arbow
On Oct 26, 2006, at 6:12 AM, MerMer wrote: > 1) I am able to add fields from the User class directly to a > template. > e.g. {{ user.email }}. However, I can't see a way to add the extra > fields from the UserProfile class directly to the template, even > though > it has a one-to-one relation

include tag and urls

2006-10-27 Thread Rob Slotboom
Using an inlude tag on my homepage to get a list of current polls requires a template. This template lists the polls and provides a link for the details. I need to give an url including the modulename: (a href="/polls/5") I don't like this approach so I want to ask if it is possible to use an obj

Re: Logout method returning "maximum recursion depth exceeded" - Help!

2006-10-27 Thread Karen Tracey
Yeah, you've got infinite recursion in the first line of your logout function: it calls itself. I'm not sure why you are even defining your own logout view? I have my urls.py map my logout url to django.contrib.auth.views.logout, and supply a context that includes template_name to display my

Re: Logout method returning "maximum recursion depth exceeded" - Help!

2006-10-27 Thread Don Arbow
On Oct 26, 2006, at 3:24 AM, MerMer wrote:I am trying to get the Logout Method to work, but I keepgetting"Exception Value:  maximum recursion depth exceeded!".The view is very straightforward, so I can't understand where I'm goingwrong.from django.contrib.auth import logout, authenticate, logindef

How to auto create a from Model just the Admin do?

2006-10-27 Thread 张沈鹏
as title, if I has a class like this class Media(models.Model): fileByte = models.IntegerField('文件大小(单位:字节)') fileName = models.CharField('文件名',maxlength='255') class Admin: pass --~--~-~--~~~---~--~~ You received this message because you are subscribed to

DateTime error

2006-10-27 Thread 张沈鹏
I set TIME_ZONE = 'CCT' (in China) and use uploadBeginFrom = models.DateTimeField ('begin time',default=datetime.now()) then the time in admin defalut value is "01:29:57" but the time now actually is "9:33:17" >>> datetime.now() datetime.datetime(2006, 10, 26, 9, 33, 17, 942000) --~

SESSION_COOKIE_AGE

2006-10-27 Thread PythonistL
I changed SESSION_COOKIE_AGE value in my settings file to lower value. After an hour or so, I increased the SESSION_COOKIE_AGE value but now I can not log in neither to admin nor to my Django application. When I try to log in to admin it says: Looks like your browser isn't configured to accept co

a strange problem of django's setup

2006-10-27 Thread bearsprite
my system is japanese winxp sp2 and python2.5 i checkout the r3936 form svn into a new folder and run "setup.py install", but meet the strange thing: all the file under the folder '''django''' do not be copied to site-packages, where only one file created: Django-0.95-py2.5.egg-info! the output

django setup problem

2006-10-27 Thread bearsprite
my system is japanese winxp sp2 and python2.5 i checkout the r3936 form svn and run "setup.py install", but meet the strange thing: all the file under the folder '''django''' do not be copied to site-packages, where only one file created: Django-0.95-py2.5.egg-info! i browse the source of setup.

Re: increase size of a charfield

2006-10-27 Thread Malcolm Tredinnick
On Fri, 2006-10-27 at 13:47 +, RajeshD wrote: > > We still need some solution for the sort of HTML element, though. This > > thread started out as a query about controlling the use of input element > > (with type="text") versus textarea. That part isn't solvable via CSS (it > > is solvable via

Re: increase size of a charfield

2006-10-27 Thread RajeshD
> No. The original model had a CharField, which is represented as an input > element. The original poster wanted to change that to a textarea element > (as we do with TextField). You cannot make that change with CSS; it > involves changing the type of HTML element in the form, not its styling. >

raw_id_admin with non-integer primary key

2006-10-27 Thread atlithorn
This seems to be on the fritz again.Chgsets 785 and 790 for ticket #586 fixed this in pre-mr. I have a foreign key related table with a CharField primary key. Trying to add stuff in the admin creates a list of primary keys but save fails with "Enter only digits separated by commas." Any ideas? -

Re: increase size of a charfield

2006-10-27 Thread RajeshD
> > Only problem i can see with this, is what if you have different > textarea's that you want to specify the dimensions of? > I actually have a form with 3 textarea's but they can be the same size > so it's not an issue right now. But i can imagine that not all > textarea's are the same size. > T

UTF8 character set problem

2006-10-27 Thread PythonistL
I use MySQL database with utf8 character set and utf8_czech_ci collation. It works well on Linux server( with mod_python) but when I try to export the data and import into the same Django application 9but running on XP machine with runserver 0,the utf8 is gone.Instead of a proper coding there ar

How to sync queryset with database?

2006-10-27 Thread doubtintom
I'm using generic view create_update.update_object to edit items selected from a generic list_detail.object_list. Edits to items work very well, they hit the database as soon as I submit the form in my html template. I know because I inspect the mysql table directly. So far so good. One of my fie

Edit Inline is deleting ALL the data in the table on attempting to save ONE record.

2006-10-27 Thread MerMer2
I have a major concern. When I try to use EDIT INLINE in one of my tables it is deleteing ALL of the records from the database, when I try to add a record via the Admin. Here's what I have Table A # This is a UserProfile Table OneToOneKey(USER) class Admin Table B ManyToMany(Table D) Tab

Can't get Apache + mod_python + sqlite3 to work

2006-10-27 Thread 735115
Hello, I've been able to get a Django app on Linux running using the built-in development server by running: # python manage.py runserver However, I've been trying for hours now trying to set up Apache + mod_python, but I keep getting the same "SystemError: NULL result without error in PyObject

The font of default admin template is bit small in Chinese

2006-10-27 Thread 张沈鹏
The font of default admin template is bit small in Chinese if you use firfox view ,( as you can see in the attachment). Would the developers add 2px of the default font , then it will have a perfect view in both Chinese and English . Thanks --~--~-~--~~~---~--~~

Template Tag - Using Sessions versus Direct DB access - pros and cons

2006-10-27 Thread MerMer
I need an authenticated user to be able to see some of their personal details on each page of the site. I have so far created a UserProfile class (which has a one to one relationship with the User class) in order to provide more information on the user. 1) I am able to add fields from the Use

Logout method returning "maximum recursion depth exceeded" - Help!

2006-10-27 Thread MerMer
I am trying to get the Logout Method to work, but I keep getting"Exception Value:maximum recursion depth exceeded!". The view is very straightforward, so I can't understand where I'm going wrong. from django.contrib.auth import logout, authenticate, login def logout(request): logout

Generating a choices set from data

2006-10-27 Thread Ice9
Hi, I'm kinda new to django, and I ran into a problem I'm making a cutom form, and one of the field I want it to be SelectField. the problem is I dont want to hard code the choices in, I want to generate a set of choice I can use from the data i already have. For example, I have a lot of polls, an

How to get a models.Manager to stay sync'd with the database?

2006-10-27 Thread doubtintom
I'm using generic view create_update.update_object to edit items selected from a generic list_detail.object_list. Edits to items work very well, they hit the database as soon as I submit the form in my html template. I know because I inspect the mysql table directly. So far so good. One of my fie

Font and DateTimeField Question

2006-10-27 Thread 张沈鹏
The font of default admin template is bit small in Chinese if you use firfox view . Would the developers add 2px of the default font , then it will have a perfect view in both Chinese and English . Thanks . == I set TIME_ZONE = 'CCT' (in China)

Re: How to make tables generated by Django be utf8 encoded by default?

2006-10-27 Thread Pythoni
Andy Dustman wrote: > On 10/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I want to store Chinese characters in my MySQL 4.1.11 through Django > > but unluckily, like most novices, I get totally mess characters when > > displaying them on utf-8 encoded templates. > > After s

Re: Still really struggling with JOINS

2006-10-27 Thread Andy Dustman
On 10/27/06, Tom Smith <[EMAIL PROTECTED]> wrote: > Is there a way to do a complete dump, re-build the database and then > import stuff (avoiding import errors... i.e doing some form of > coercion)? Use mysqldump with the --no-create-info option which avoids dumping the table schemas. Drop the d

Re: How to make tables generated by Django be utf8 encoded by default?

2006-10-27 Thread Andy Dustman
On 10/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > I want to store Chinese characters in my MySQL 4.1.11 through Django > but unluckily, like most novices, I get totally mess characters when > displaying them on utf-8 encoded templates. > After some investigation I found that the

Re: directed graph in default admin

2006-10-27 Thread Waylan Limberg
On 10/26/06, John Lenton <[EMAIL PROTECTED]> wrote: > [snip] > > this is as expected; but if you click on "Sink", you get > > Source | Sink v > Anode | Cnode > Cnode | Bnode > Mnode | Anode > Xnode | Anode > > i.e., it still sorts by Source instead of Sink. Is this a bug in > django, or am I f

Re: increase size of a charfield

2006-10-27 Thread Daniel Roseman
Benedict Verheyen wrote: > Those issues are actually solved by using the TextField instead of > CharField in my model and as Rajesh pointed out, using an inline style > like this > > textarea {width: 30em; height: 7em;} > Or you can change the size of the textarea in your view code: man = MyM

Re: Major Concern - Edit Inline is Deleting ALL the records when I try to save ONE record.

2006-10-27 Thread Merric Mercer
Patrick, Many thanks - you put me on the right path. I had the core=true in the Foreign Key like so:- class C ForeignKey(Table A, core=true, edit_inline) I didn't have core=true on any other fields. So I tried it on another field at this cured the problem. I presume that by placing core=True

Re: increase size of a charfield

2006-10-27 Thread RajeshD
> We still need some solution for the sort of HTML element, though. This > thread started out as a query about controlling the use of input element > (with type="text") versus textarea. That part isn't solvable via CSS (it > is solvable via Javascript, but I'm not sure how natural that is). Stric

Re: Major Concern - Edit Inline is Deleting ALL the records when I try to save ONE record.

2006-10-27 Thread patrickk
can you give the exact model-definition? where is "core=True"? patrick Am 27.10.2006 um 14:15 schrieb Merric Mercer: > > I'm having a problem which is causing me real concern. > > When I try to save a new record to a table, via the Admin (editing > inline), ALL of the records within that table

Re: Major Concern - Edit Inline is Deleting ALL the records when I try to save ONE record.

2006-10-27 Thread Merric Mercer
An amendment to the below. Editing inline (via Table A) is deleting ALL of the records in Table C that belong to the related profile in table A. It is not deleting every record in the DB. Also, apologies for having hijacked the original subject. I'm not sure how that happened. My posts via

Major Concern - Edit Inline is Deleting ALL the records when I try to save ONE record.

2006-10-27 Thread Merric Mercer
I'm having a problem which is causing me real concern. When I try to save a new record to a table, via the Admin (editing inline), ALL of the records within that table are being deleted! Here's a brief description of what I have:- class A # This is a user profile table that extends USER OneT

Passing model instance to the validator

2006-10-27 Thread Aidas Bendoraitis
Hello all! AT FIRST, THE SITUATION: The meta attribute unique_together has no validators to check, whether two foreign keys are unique together or not. Instead of that, the IntegrityError is raised [URL #1]. So I decided to code my own custom validator for checking uniqueness of two fields. I

Re: I cant but woefully look at Ruby_oN_rails guys adding ranking with just

2006-10-27 Thread Malcolm Tredinnick
On Fri, 2006-10-27 at 09:47 +, John wrote: > Hello guys > > I m having lots of fun with python it is like all of sudden I m > unshackled from the days of zope.. Man it is a lot of fun. It is super > simple and easy... Ok now to my question, I m trying to add a ranking > feature to various obj

I cant but woefully look at Ruby_oN_rails guys adding ranking with just

2006-10-27 Thread John
Hello guys I m having lots of fun with python it is like all of sudden I m unshackled from the days of zope.. Man it is a lot of fun. It is super simple and easy... Ok now to my question, I m trying to add a ranking feature to various objects in the system, the users, their posts, their media et

Re: Null Query Set

2006-10-27 Thread Malcolm Tredinnick
On Fri, 2006-10-27 at 00:06 -0700, Steve Wedig wrote: > I'm interested in returning a Null (empty) query set. I guess this is > like the Null Object pattern. So it has to be a QuerySet implements > the interface (.count, .all, etc) that always returns nothing. > > Does anyone know how to do this?

Re: ado_mssql introspection patch

2006-10-27 Thread Carlos Yoder
Sean, Good news! I major blunder on my side. I was updating from SVN all the time, but happily ignoring that install, since Python was 'seeing' and old stale egg on site-packages. I removed everything, and svn'd from tunk directly on site-packages, and voila. =) Now I have a different problem,

Re: Still really struggling with JOINS

2006-10-27 Thread Tom Smith
> Just to establish that we are all on the same page: are you seeing the > error when you use exactly the model example you posted yesterday and > cut and paste the queryset constructor that Rajesh posted? That should > be working. No, it fails for me, we are on the same page. > If that is fail

Null Query Set

2006-10-27 Thread Steve Wedig
I'm interested in returning a Null (empty) query set. I guess this is like the Null Object pattern. So it has to be a QuerySet implements the interface (.count, .all, etc) that always returns nothing. Does anyone know how to do this? Thanks! - Steve --~--~-~--~~~---~