Django 1.2 proposal: revisit admin autodiscover improvement for custom sites

2009-08-19 Thread Manuel Saelices
0, but I think #8572 approach is better (better explicit than implicit). Ticket number is not important, but I think that functionality is easy to implement (with several strategies) and has no colateral effects, being backwards compatible. ¿any opinions? Rega

Re: Django 1.2 proposal: revisit admin autodiscover improvement for custom sites

2009-08-20 Thread Manuel Saelices
On 20 ago, 02:36, Brian Rosner wrote: > On Aug 19, 2009, at 3:32 PM, Manuel Saelices wrote: > > [...] > > I am in agreement the approach in #8572 is best. This has something   > that has bitten me on a few occasions and would like to get this fixed   > in Django. If y

Re: Thoughts on extensibility of the admin app

2006-08-22 Thread Manuel Saelices
El vie, 11-08-2006 a las 19:00 +, [EMAIL PROTECTED] escribió: > [...] > [...] The UI elements in the admin > would be a great start towards a universally useful UI toolkit for > django, they just need to be opened up a bit, provide hooks and > callbacks and abstraction so that they can be reus

Abstract classes support in models

2006-08-22 Thread Manuel Saelices
class FooSuperclass(models.Model): __abstract__ = True def oneFunction(self, x, y): ... class FooClass(FooSuperclass): age = models.IntegerField() -- Manuel Saelices [EMAIL PROTECTED] ICS Yaco S.L. http://www.yaco.es/ Tlfno. +34

Re: Form generator framework

2006-09-23 Thread Manuel Saelices
Impressive... Apps like that is a perfect DRY example. It could be a first step to develop a huge CMS based on django. El vie, 22-09-2006 a las 08:41 +, Mikko Ohtamaa escribió: > Hi, > > I have created a little HTML form generator framework for Django. The > framework (django.contrib package

Admin media root

2006-09-24 Thread Manuel Saelices
ings.ADMIN_MEDIA_DIR else: import django self.media_dir = django.__path__[0] + '/contrib/admin/media' else: self.media_dir = media_dir self.media_url = settings.ADMIN_MEDIA_PREFIX What do you think?? Cheers, -- Ma

Admin media dir (patch)

2006-09-24 Thread Manuel Saelices
If anybody is interested... I attach patch for functionality of setting admin_media in settings.py. Cheers, PS: Excuse me if I start a new thread instead of answering last email... I dont receive via POP emails send by me (I dont know why :_( ) --~--~-~--~~~---~--~--

Re: Admin media root

2006-09-25 Thread Manuel Saelices
option or setting), and avoid to enforce making a start.sh script with --admin-media option. Regards, Lin El lun, 25-09-2006 a las 07:36 +1000, Malcolm Tredinnick escribió: > On Sun, 2006-09-24 at 16:11 +0200, Manuel Saelices wrote: > > Hi all, > > > > I just look 3811 revisi

Re: Why would render() get called multiple times?

2008-09-19 Thread Manuel Saelices
icket for that optimization hack: http://code.djangoproject.com/ticket/9154 Regards, Manuel Saelices > > Malcolm > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To p

Re: Proposal: django.forms.SafeForm - forms with built in CSRF protection

2008-09-23 Thread Manuel Saelices
ddForm and GenericEditForm. The only requirement is to pass request into constructor, that maybe is a little more coupled solution that normal Django forms (here DRY make conflict with "less coupled") With a request passed to forms, you can do a lot of things in reusability, like S

Optimizations on templates

2008-09-24 Thread Manuel Saelices
kind of improvement would fantastic for community and for comparing other frameworks and templates engine. Regards, Manuel Saelices. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To p

Re: Optimizations on templates

2008-09-24 Thread Manuel Saelices
y.deepcopy(self.get_parent()) line in my patch). On 25 sep, 00:30, Johannes Dollinger <[EMAIL PROTECTED]> wrote: > Am 25.09.2008 um 00:10 schrieb Manuel Saelices: > > > > > > > Hi, > > > one week ago I've made a little change in template rendering engine

Allowing non delete cascading

2009-02-15 Thread Manuel Saelices
patch with unit tests. This ticket was marked into "Design decision needed" stage by a triager, and this is the reason I post this. Ticket is this: http://code.djangoproject.com/ticket/10262 If other developers accept this ticket (maybe with another notation), I compromise to w

Re: Allowing non delete cascading

2009-02-15 Thread Manuel Saelices
On 16 feb, 01:28, Karen Tracey wrote: > On Sun, Feb 15, 2009 at 7:03 PM, Manuel Saelices wrote: > [snip background] > > > > > These are the reasons to think in a possible improvement in Django > > ORM. I've patched django to support a model like this:

Re: Call for ideas: Admin Improvements

2009-03-31 Thread Manuel Saelices
= models.TextField() you can put a hidden inline editor (activated by dobleclicking label), with this sentences: {% inplace_edit book "title" %} {% inplace_edit book "body" %} This create a default model form for Book object. Also, you can redefine a custom model form. Regards,

Re: Maybe DEBUG=True should only record the last N SQL queries?

2008-04-20 Thread Manuel Saelices
Simon is right IMO, but not only for production server... what about development and preproduction servers? Is usual in projects that you deploy application in a server for customer or partners, and it's better to set DEBUG mode for debugging purposes (of course), tracebacks, URLs debugging, etc.

Re: Multiple database support

2008-05-23 Thread Manuel Saelices
On 23 mayo, 13:00, "Mike Scott" <[EMAIL PROTECTED]> wrote: > > Maybe having to state a storage location on a per-row level. (IE this could > happen by overriding the manager, and simply switching DB at selection time. > or being able to provide the DB info at selection time.) Maybe i good thing w