Removing all URLs associated with django admin / admindoc in admindoc view page

2010-12-02 Thread JeeyoungKim
Hello, I'm trying to use django's admindoc module in my project. I realized that the view documentations for the project, located under /admin/doc/ views/ (my admin docs are served by admin/doc is littered with views for the both admin and admindoc module. Those views aren't very interesting for m

Re: In-memory sorting of a QuerySet, yielding a QuerySet

2010-11-22 Thread JeeyoungKim
If you look at the internals of QuerySet, the evaluated values lie inside self._result_cache. You can just sort this element, but that sounds very hacky... On Nov 22, 4:27 pm, Christophe Pettus wrote: > Apologies if this is a FAQ... > > I'd like to take a QuerySet and order it in memory, rather t

Re: Models not being updated when accessed by multiple processes

2010-11-19 Thread JeeyoungKim
I'm wondering, how are fail_to_get_lock and release_lock implemented? It would be some kind of multiprocess lock, which seems overly complicated.. using save() in this case is cumbersome, because save() is not threadsafe... you'll have to try to maintain your own lock. If you only want to impleme

how do i change the requiredness of fields in modelform?

2008-12-24 Thread JeeyoungKim
I have the following form: class UserInfoForm(forms.ModelForm): password_field = forms.CharField(label='Password', widget=forms.PasswordInput(render_value=False) password_repeat_field = forms.CharField(label='Password(repeat)', widget=forms.PasswordInput(render_value=False)) #Make th