Re: Admin three levels deep

2005-10-06 Thread Robert Wittams
> > > Hm, I don't know how you're implementing it (maybe I'll switch to the > new-admin trunk tomorrow, just to take a look), but I think you can > implement it fairly simply without the problems you describe above. Well, it is not implemented fully yet. The main changes for this will be in djan

Re: Admin three levels deep

2005-10-06 Thread Tim Stoop
On 10/7/05, Robert Wittams <[EMAIL PROTECTED]> wrote: > a) With a very confusing UI > b) POST-ing ridiculous amounts of data. > > Which may not be in your users best interests. My aim in enabling this > feature is not really to encourage arbitrary level admins, but to allow > them in the rare case

Re: About _post_save

2005-10-06 Thread Adrian Holovaty
On 10/6/05, Armin <[EMAIL PROTECTED]> wrote: > I think it would be relevant to me on my project here. The first time I > create a document, my application has to setup a photoset in Flickr, > but not on consequent saves. Unless there is a better way to do that, > and I'm missing something here. A

Re: Admin three levels deep

2005-10-06 Thread Robert Wittams
[EMAIL PROTECTED] wrote: > Hi there, > > I'm very new to Django and I'm learning it by adapting the stuff from > the tutorial to a new (test) application, a Forum. The tutorial nicely > explains that you don't want "Polls" and "Choices" in the main menu, > because "Choices" is a part of "Poll". W

Admin three levels deep

2005-10-06 Thread [EMAIL PROTECTED]
Hi there, I'm very new to Django and I'm learning it by adapting the stuff from the tutorial to a new (test) application, a Forum. The tutorial nicely explains that you don't want "Polls" and "Choices" in the main menu, because "Choices" is a part of "Poll". With my test-app I want to go even fur

Implementation Question

2005-10-06 Thread Armin
Hey everyone, In the application I'm writing, upon adding an 'event', it must create a flickr photoset. Now, in order to do that, I need to login to yahoo, which is done through a redirect from my site to yahoo and then from yahoo back to my site with a session id. Please assist me to best approa

Customizing the M, in MVC

2005-10-06 Thread leo
Hey all - Question. I'm looking at pitching Django as the ideal web framework for our application, but I have a question. We don't rely on a database connection to poll our data from - instead, we have a J2EEish setup where we poll some centralized CORBA server for data. That said, how easy woul

Re: About _post_save

2005-10-06 Thread Armin
Adrian, I think it would be relevant to me on my project here. The first time I create a document, my application has to setup a photoset in Flickr, but not on consequent saves. Unless there is a better way to do that, and I'm missing something here. Thanks, Armin

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-06 Thread Adrian Holovaty
On 10/6/05, Emanuele <[EMAIL PROTECTED]> wrote: > YESS! It works perfectly! > > Thank you very much, this solves an important problem in my > application. Excellent! Thank *you* for using Django. :-) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-06 Thread Emanuele
YESS! It works perfectly! Thank you very much, this solves an important problem in my application. Emanuele

Re: About _post_save

2005-10-06 Thread Adrian Holovaty
On 10/6/05, paolo <[EMAIL PROTECTED]> wrote: > I'm trying to use _post_save hook. How to distinguish if an object has > been saved for the first time or if has been updated, and so make > _post_save behave differently in the two situations? There's no way to differentiate that at the moment. Is t

About _post_save

2005-10-06 Thread paolo
Hi! I'm trying to use _post_save hook. How to distinguish if an object has been saved for the first time or if has been updated, and so make _post_save behave differently in the two situations? TIA, paolo

Where do I trap an IntegrityError exception in the console?

2005-10-06 Thread ludo
I am toying with a simple datamodel for a site I'm planning, and one of my app's models has a unique_together constraint. If I try to add a duplicate record from the admin console, I get a traceback caused by an untrapped IntegrityError exception. unique_together appears to work as it should (the

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-06 Thread Adrian Holovaty
On 10/6/05, Emanuele <[EMAIL PROTECTED]> wrote: > I'm sorry but after updating (revision 786) this simple example > still has the problem I reported: Hey Emanuele, Update your Django code to revision 790, and give it another shot! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | ch

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-06 Thread Emanuele
I'm sorry but after updating (revision 786) this simple example still has the problem I reported: class Poll(meta.Model): question = meta.CharField(maxlength=200,primary_key=True) def __repr__(self): return self.question class META: admin = meta.Admin() pass