Quick question about switching to newforms-admin branch....

2008-07-15 Thread Jason
...and it is: if I were to switch my current django project over to newforms-admin branch, would it break all of the old admin pages? Or is there legacy support built in? Thanks mucho in advance! --~--~-~--~~~---~--~~ You received this message because you

newforms-admin: Interaction between pre_save signals and form validation

2008-07-14 Thread Martin Diers
model before creating or changing a node, or deleting it. This all works fine when I create and save model instances from code. It fails miserably once I try to create page instances via newforms- admin. Here is what I am pretty sure is happening: When one attempts to save a new record, the MPTT

Re: newforms-admin delete uploaded file/image

2008-07-11 Thread Rajesh Dhawan
Hi again, > With newforms-admin is there any way to add a 'delete' checkbox or > something to a FileField/ImageField? Basically, we'd like the ability > to remove an image that's been uploaded without having to replace it > with something else. The whole idea of newforms-admin is

Re: Customizing newforms-admin

2008-07-11 Thread Rajesh Dhawan
Hi Josh, > What I'm trying to do is re-order the apps and models as they appear > on the admin index, so if there's some other way to do this that I'm > not aware of I'd be just as happy. You can extend django.contrib.admin.sites.AdminSite with your own custom class. Then, extend the method

Re: Customizing newforms-admin

2008-07-11 Thread Josh
Anybody? --~--~-~--~~~---~--~~ 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

newforms-admin delete uploaded file/image

2008-07-11 Thread Josh
With newforms-admin is there any way to add a 'delete' checkbox or something to a FileField/ImageField? Basically, we'd like the ability to remove an image that's been uploaded without having to replace it with something else. --~--~-~--~~~---~--~~ You received

Re: newforms-admin, forms.ModelForm, formtools.preview

2008-07-09 Thread d-rave
Thanks very much for these responses, they've given me something to think about. However, assuming I'm going about things the right way, the problem appears with the loading of Model data into a Form object which can be passed to a FormTools.preview class. For example, in the view function

Re: newforms-admin: root() takes exactly 3 arguments (2 given)

2008-07-08 Thread furby
hmm...seems obvious now that you mention it =). Thanks for the help guys. On Jul 7, 9:25 pm, Juanjo Conti <[EMAIL PROTECTED]> wrote: > furby escribió: > [...] > > > admin.site.root() takes3arguments: self, request, url. There is no > > way to specifyargumentsin urls.py, so I have no idea how

Re: Import issues since newforms-admin

2008-07-08 Thread Julien Phalip
Ok, I've just opened a ticket and posted some code illustrating the issue: http://code.djangoproject.com/ticket/7684 Thanks, Julien On Jul 9, 2:14 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-08 at 21:10 -0700, Julien Phalip wrote: > > Thanks for the tip Malcolm. > > >

Re: Import issues since newforms-admin

2008-07-08 Thread Malcolm Tredinnick
On Tue, 2008-07-08 at 21:10 -0700, Julien Phalip wrote: > Thanks for the tip Malcolm. > > I've prepared some very simple code to illustrate the problem. I can't > find a way to attach files in this mailing list. Should I open a > ticket and post it there? Yes. Trac is the only place where

Re: Import issues since newforms-admin

2008-07-08 Thread Julien Phalip
008-07-08 at 16:20 -0700, Julien Phalip wrote: > > Hi, > > > There's an issue that arose as I upgraded an external app of mine to > > newforms-admin. > > > I created the conventional admin.py, which does all the registration > > business, and did "import ad

Re: Import issues since newforms-admin

2008-07-08 Thread Malcolm Tredinnick
On Tue, 2008-07-08 at 16:20 -0700, Julien Phalip wrote: > Hi, > > There's an issue that arose as I upgraded an external app of mine to > newforms-admin. > > I created the conventional admin.py, which does all the registration > business, and did "import admin&qu

Import issues since newforms-admin

2008-07-08 Thread Julien Phalip
Hi, There's an issue that arose as I upgraded an external app of mine to newforms-admin. I created the conventional admin.py, which does all the registration business, and did "import admin" in the module's __init__.py After I did that, I got some import errors at compilation ti

Re: newforms-admin, forms.ModelForm, formtools.preview

2008-07-08 Thread Milan Andric
On Tue, Jul 8, 2008 at 10:00 AM, Milan Andric <[EMAIL PROTECTED]> wrote: > On Mon, Jul 7, 2008 at 6:22 AM, d-rave <[EMAIL PROTECTED]> wrote: >> >> Has anyone successfully got formtools.preview working with >> forms.ModelForm so that the form fields are populated from the model. >> >> If so, do

Re: newforms-admin, forms.ModelForm, formtools.preview

2008-07-08 Thread Milan Andric
On Mon, Jul 7, 2008 at 6:22 AM, d-rave <[EMAIL PROTECTED]> wrote: > > Has anyone successfully got formtools.preview working with > forms.ModelForm so that the form fields are populated from the model. > > If so, do you have an example?? Dave, I'm not familiar with formtools but if all you want

How to change ordering of m2m-fields in newforms-admin?

2008-07-08 Thread spacetaxi
Hello all, maybe there are some newforms-admin experts out there: What's the right way to change the ordering of ManyToMany-fields (displayed as select widgets) in newforms-admin? I need to change the ordering *without* changing the respective model class. Background: The default ordering

Re: newforms-admin: root() takes exactly 3 arguments (2 given)

2008-07-07 Thread Juanjo Conti
furby escribió: [...] > admin.site.root() takes 3 arguments: self, request, url. There is no > way to specify arguments in urls.py, so I have no idea how to fix > this. Any help would be appreciated. Thanks. > Yes there is. You can use regex groups: (r'^admin/(.*)', site1.root), The string

Re: newforms-admin: root() takes exactly 3 arguments (2 given)

2008-07-07 Thread Arien
On Mon, Jul 7, 2008 at 6:31 PM, furby <[EMAIL PROTECTED]> wrote: > > here's my urls.py: > * > 1 from django.conf.urls.defaults import * > 2 from django.contrib import admin > 3 from wizcal.app.models import site1 > 4 > 5 urlpatterns = patterns('', > 6 #

newforms-admin: root() takes exactly 3 arguments (2 given)

2008-07-07 Thread furby
has anyone else seen this? * TypeError at /admin/ root() takes exactly 3 arguments (2 given) Request Method: GET Request URL:http://www.wizcal.com/admin/ Exception Type: TypeError Exception Value:root() takes exactly 3 arguments (2 given) * here's my urls.py: * 1

newforms-admin, forms.ModelForm, formtools.preview

2008-07-07 Thread d-rave
Has anyone successfully got formtools.preview working with forms.ModelForm so that the form fields are populated from the model. If so, do you have an example?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

FormPreview in admin site (newforms-admin).

2008-07-04 Thread Adam J. Forster
Hi all, I'm pretty sure that this isn't possible, but does anybody know if you can add the form preview functionality to the admin site (using newforms-admin branch)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Newforms Admin - Overriding the Save Method of an Inline Model

2008-07-02 Thread John Boxall
Hey Brian - I wasn't sure that the fact that it was inline would have an effect - I see now that it does - sorry for the incomplete first post. I just found it odd that what I was doing worked for ``clean`` but not ``save``. I'll look into Formsets. Richard - I'm sure I could do it that way -

Re: Newforms Admin - Overriding the Save Method of an Inline Model

2008-07-02 Thread Richard Dahl
You may be able to do what you want to by overriding the save() function within the model. If you need any information from the form or related object you could pass them as kwargs to save. http://www.djangoproject.com/documentation/model-api/ -richard On 7/2/08, Brian Rosner <[EMAIL

Re: Newforms Admin - Overriding the Save Method of an Inline Model

2008-07-02 Thread Brian Rosner
On Jul 2, 2008, at 12:22 PM, John Boxall wrote: > class OptionModelForm(forms.ModelForm): > > class Meta: > model = Option > > def save(self, commit=True): > # Will -NEVER- run > assert False > > def clean(self): > # Will

Newforms Admin - Overriding the Save Method of an Inline Model

2008-07-02 Thread John Boxall
Hey everyone - I'm running into a bit of a problem with NFA. I would like to override the save method of an inline model. For example - I have a Poll which many Options. In the admin panel I would be able to edit the Options while editing the Poll so I declare the Poll to have the Options as

Is it possible to collapse stacked or table inline in newforms-admin?

2008-06-26 Thread AmanKow
I don't want to collapse the individual items, but the whole stack or table. Anyone know how to go about this? Thanks Wayne --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Collapse an inline in newforms-admin

2008-06-25 Thread AmanKow
Is there anyway to collapse an inline edited model in the newforms- admin? --~--~-~--~~~---~--~~ 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@google

Re: correct list for newforms admin questions? named urls / replacing admin root page

2008-06-18 Thread Norman Harman
working version with old admin. > > > This is not yet supported in the newforms-admin branch. See ticket > #6470 [1]. At this point your best bet is to hardcode the URLs. > > [1]:http://code.djangoproject.com/ticket/6470 Actually, I figured out this workaround. Which I call "not pretty, b

Re: correct list for newforms admin questions? named urls / replacing admin root page

2008-06-17 Thread Brian Rosner
Hi Norman, On Jun 17, 2008, at 3:49 PM, Norman Harman wrote: > > I want to use {% url %} to point into portions of the admin site(and > change the default url structure). I hacked this generally > unfullfilling but working version with old admin. This is not yet supported in

correct list for newforms admin questions? named urls / replacing admin root page

2008-06-17 Thread Norman Harman
I want to use {% url %} to point into portions of the admin site(and change the default url structure). I hacked this generally unfullfilling but working version with old admin. model = dict(app_label="specials", model_name="adspecial") urlpatterns +=

Re: newforms-admin permissions

2008-06-13 Thread Rajesh Dhawan
emont88 wrote: > I just switched over to the newforms-admin branch because I need to > add specific permissions to my admin site. > I have been looking over the newforms-admin howto and the ModelAdmin > class, but I haven't been able to figure very much out. > > My app

newforms-admin permissions

2008-06-12 Thread emont88
I just switched over to the newforms-admin branch because I need to add specific permissions to my admin site. I have been looking over the newforms-admin howto and the ModelAdmin class, but I haven't been able to figure very much out. My app is a blogging app that needs to support multiple

Re: Basic Blog and Newforms-Admin

2008-06-11 Thread Russell Keith-Magee
On Wed, Jun 11, 2008 at 5:02 PM, Alfonso <[EMAIL PROTECTED]> wrote: > > Error while importing URLconf 'myapp.basic.blog.urls': The model Post > is already registered > > Occurs on any page whenever basic.blog.urls urlconf is involved. Any > suggestions would be appreciated! You're just

Basic Blog and Newforms-Admin

2008-06-11 Thread Alfonso
Hi Guys, Just installed newforms-admin into my django app and having a strange issue with basic-blog app: Error while importing URLconf 'myapp.basic.blog.urls': The model Post is already registered Occurs on any page whenever basic.blog.urls urlconf is involved. Any suggestions would

Customizing newforms-admin

2008-06-10 Thread Josh
With newforms-admin, is there currently anyway of duplicating the functionality of 'manage.py adminindex '? It appears that currently this still is looking for the old admin stuff as the result I get is this: {% if perms.myapp %} Myapp {% endif %} I'm guessing that this is basically something

Re: "more than 1 ForeignKey" error in newforms-admin

2008-06-09 Thread Andre Meyer
On Mon, Jun 9, 2008 at 9:21 PM, James Bennett <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 9, 2008 at 2:08 PM, Andre Meyer <[EMAIL PROTECTED]> > wrote: > > i have a model with a class that has a foreign key and a subclass that > has > > another. this works well for creating the database, but the

Re: "more than 1 ForeignKey" error in newforms-admin

2008-06-09 Thread James Bennett
On Mon, Jun 9, 2008 at 2:08 PM, Andre Meyer <[EMAIL PROTECTED]> wrote: > i have a model with a class that has a foreign key and a subclass that has > another. this works well for creating the database, but the admin does not > like it. I believe your problem is that support for hierarchies of

"more than 1 ForeignKey" error in newforms-admin

2008-06-09 Thread Andre Meyer
hi all just a quick question to be sure: is it on purpose that newforms-admin does not allow more than one ForeignKey? or is it a not yet supported feature? i have a model with a class that has a foreign key and a subclass that has another. this works well for creating the database

Re: Change app name in Admin (Newforms-admin)

2008-06-06 Thread Rajesh Dhawan
le and > no ticket at all. > > There are any news about it? Wouldn't be good if at least the newforms- > admin provide a way to translate the application names in the admin > interface? If you add an app_label field to your Model's Meta class, Django (newforms-admin branch) will then

Change app name in Admin (Newforms-admin)

2008-06-06 Thread Anderson Santos
I was wondering how to translate application name in Admin page and I only found messages back to 2006 with a suggestion to include a variable "__verbose_name__" in the application's __init__.py file and no ticket at all. There are any news about it? Wouldn't be good if at least th

custom form validation in newforms-admin

2008-06-05 Thread Mackenzie Kearl
I am using newforms admin and need to be able to have a validation check against multiple fields on the form. I was reading that all you need to do is to go form_change = MyCustomForm() from within your subclass of admin.ModelAdmin however it seems like this has changed since the post that I

DIsplay user list with full names in newforms-admin

2008-06-04 Thread Joost Cassee
Hi all, A Django site I am developing will allow students to enroll in courses. A user is a student if a member of the 'students' group. The Couse model has a many-to-many relation with User. So far so good... When a course administrator wants to add students to a course, the widget shows the

Re: About newforms-admin branch

2008-06-02 Thread Jeff Anderson
Grupo Django wrote: On 2 jun, 00:26, Jeff Anderson <[EMAIL PROTECTED]> wrote: Grupo Django wrote: When newforms-admin is merged to the trunk, what will happen with all the sites that are currently using the current admin application? It's completely different. Should we change

Re: About newforms-admin branch

2008-06-02 Thread Grupo Django
On 2 jun, 00:26, Jeff Anderson <[EMAIL PROTECTED]> wrote: > Grupo Django wrote: > > When newforms-admin is merged to the trunk, what will happen with all > > the sites that are currently using the current admin application? It's > > completely different. Should we

Re: About newforms-admin branch

2008-06-01 Thread Jeff Anderson
Grupo Django wrote: When newforms-admin is merged to the trunk, what will happen with all the sites that are currently using the current admin application? It's completely different. Should we change every single project to make them compatible with the newforms-admin version? Short answer

About newforms-admin branch

2008-06-01 Thread Grupo Django
Hello, I'd like to know the status in the newforms-admin branch, I have seen the todo list: http://code.djangoproject.com/query?status=new=assigned=reopened=%7Enfa-blocker=priority but it would be great the current state (80%,90%...). The reason I'm starting a new project and newforms admin

Re: Issue with newforms-admin

2008-05-23 Thread Brandon Taylor
gt; > wrote: > > > > > Hi everyone, > > > I'm having a problem with an url pattern. When I try to do a custom > > view using the newforms admin, such as: > > > (r'^admin/surveys/survey/answers/(?P[-\w]+)/$', > > 'app.surveys.views.answers_list'), >

Re: Issue with newforms-admin

2008-05-22 Thread Karen Tracey
On Thu, May 22, 2008 at 3:21 PM, Brandon Taylor <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I'm having a problem with an url pattern. When I try to do a custom > view using the newforms admin, such as: > > (r'^admin/surveys/survey/answers/(?P[-\w]+)/$', > '

Issue with newforms-admin

2008-05-22 Thread Brandon Taylor
Hi everyone, I'm having a problem with an url pattern. When I try to do a custom view using the newforms admin, such as: (r'^admin/surveys/survey/answers/(?P[-\w]+)/$', 'app.surveys.views.answers_list'), If I remove: (r'^admin/(.*)', admin.site.root), #the default routing for newforms

Re: newforms-admin and intermediary tables for m2m relationships

2008-05-19 Thread Russell Keith-Magee
On Tue, May 20, 2008 at 6:55 AM, David Robinson <[EMAIL PROTECTED]> wrote: > > We are using our own intermediary table for a many-to-many relationship > so that we can store additional information about the relationship ... > Is there anything about the newforms-admin bran

newforms-admin and intermediary tables for m2m relationships

2008-05-19 Thread David Robinson
templates to use in the admin, and we've got a big, clunky save function that grinds through everything well enough. But we have hopes of making the world a better place a few lines of code at a time. Is there anything about the newforms-admin branch that might make it easier to do this sort

Re: Image upload not working in newforms admin?

2008-05-17 Thread Graham Dumpleton
]> wrote: > > > Hi everyone, > > > I can't get the newforms admin to upload images. I have PIL and JPEG > > support installed. My selftest on PIL reports that JPEG is supported, > > along with PNG, but when I try to upload, I get: > > > Upload a valid image.

Re: Image upload not working in newforms admin?

2008-05-16 Thread Brandon Taylor
mage. The file you uploaded was either not an image or > > a corrupted. > > > I can confirm that it *is* a JPEG, and it was working before I > > switched to newforms-admin :) > > > Thoughts? Anyone experiencing something similar? I'm sure

Re: Image upload not working in newforms admin?

2008-05-16 Thread mw
with OS X's Apache and mod_python being 64 bit while my PIL is something else, but I need to verify that PIL is, in fact, 32 bit still. On May 16, 1:06 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I can't get the newforms admin to upload images. I have PIL and

Image upload not working in newforms admin?

2008-05-16 Thread Brandon Taylor
Hi everyone, I can't get the newforms admin to upload images. I have PIL and JPEG support installed. My selftest on PIL reports that JPEG is supported, along with PNG, but when I try to upload, I get: Upload a valid image. The file you uploaded was either not an image or a corrupted. I can

Invalid block tag: 'include_admin_script' in newforms admin?

2008-05-15 Thread Brandon Taylor
Anyone else receiving this error: Invalid block tag: 'include_admin_script' when loading the change form in newforms-admin? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

newforms-admin: {{ original.exemplar_text }} Object Error

2008-05-15 Thread mbdtsmh
Hi all, I'm using the newforms-admin branch and have come across this annoyance. When I am trying to add a custom form value to the form text; i.e., {{ original.exemplar_text }} it gives me an Object expected error. This causes certain javascript elements that are also on the page

How to: Integrate the newforms admin?

2008-05-14 Thread Brandon Taylor
Hello everyone, What's the process for incorporating the newforms admin? I'm currently running trunk (0.97). TIA, Brandon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Formset from newforms-admin

2008-05-13 Thread [EMAIL PROTECTED]
While not official, brosner(an NFA commiter) has started working on some NFA docs: http://github.com/brosner/django/commits/nfa_docs On May 13, 11:33 am, "Ramdas S" <[EMAIL PROTECTED]> wrote: > Hi, > > Can someone kindly explain how you can use the formsets from new-admin > trunk? Is there some

Formset from newforms-admin

2008-05-13 Thread Ramdas S
Hi, Can someone kindly explain how you can use the formsets from new-admin trunk? Is there some kind of an example? Ramdas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: IntegrityError on newforms-admin

2008-05-09 Thread Nuno Mariz
Thanks Brian, One more question, there is another way to write a custom validator without override the field type? Nuno On May 9, 5:30 pm, Brian Rosner <[EMAIL PROTECTED]> wrote: > On May 9, 4:31 am, Nuno Mariz <[EMAIL PROTECTED]> wrote: > > > I'm using newforms-admin a

Re: IntegrityError on newforms-admin

2008-05-09 Thread Brian Rosner
On May 9, 4:31 am, Nuno Mariz <[EMAIL PROTECTED]> wrote: > I'm using newforms-admin and I've got a "duplicate key violates unique > constraint" when I'm added new record(with the same value on field > that already exists in the db) in admin interface. > I've a

IntegrityError on newforms-admin

2008-05-09 Thread Nuno Mariz
I'm using newforms-admin and I've got a "duplicate key violates unique constraint" when I'm added new record(with the same value on field that already exists in the db) in admin interface. I've an "unique=True" in the field, shouldn't admin interface shows a error

Localflavor and newforms-admin

2008-05-07 Thread Sergio
Hi everybody! I'm suffering a problem trying to use the Spanish localflavor fields, but I think that it is not my fault. I'm using neforms-admin branch. I'm using this source code in the admin.py file: from django.contrib.localflavor.es import forms as es_forms from django.contrib import

Re: [newforms-admin] using multiple AdminSites

2008-05-04 Thread Derek Hoy
On Sat, May 3, 2008 at 11:05 PM, derek.hoy <[EMAIL PROTECTED]> wrote: > - if you register models to basic-admin, they won't show automatically > in advanced-admin and vice-versa Looks like you can register a model with more than one AdminSite. Derek

[newforms-admin] using multiple AdminSites

2008-05-03 Thread derek.hoy
I've just move a project onto newforms-admin, and the change has gone fine. Thanks to all who've worked on this. The project has a public site and some customised admin for office staff, so I'm thinking about having 2 AdminSites, one for office staff and a basic one for sysadmin. The /docs

Debugging, breakpoints, and newforms-admin

2008-05-02 Thread Martin Diers
I have a problem I am trying to troubleshoot, specifically on the newforms-admin branch, latest revision as of this afternoon. The trouble is in an Inline, which contains MultiWidgets assigned two MultipleValueFields. In this case, it is a Bible reference being displayed as a select

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
Thanks Karen for your feedback again. I found that very useful. The NewForms-Admin branch is really something I absolutely use now and would probably be keen myself to help get the urgent issues ironed out, if possible of course. regards, -al On Apr 30, 11:02 pm, "Karen Tracey&quo

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread Karen Tracey
tch for a small issue as such get accepted in short > frame of time? > Not necessarily. It depends on how much time the people doing the work have to devote to it, and what their own priorities are. My understanding is that the nfa_blocker tickets are highest priority for newforms-admin, since t

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
racey" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 30, 2008 at 3:25 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > The non_field_errors don't get displayed on newforms-admin templates > > such as chnage_form.html > > > I did a debug on adminf

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 3:25 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > The non_field_errors don't get displayed on newforms-admin templates > such as chnage_form.html > > I did a debug on adminform.form.errors.items in chnage_form.html and > my error is t

The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
The non_field_errors don't get displayed on newforms-admin templates such as chnage_form.html I did a debug on adminform.form.errors.items in chnage_form.html and my error is there under __all__ field. Is there a reason the __all__ field messages don't get displayed on top of form templates

Re: NewForms Admin - convention

2008-04-30 Thread Karen Tracey
quot;"" > > > > It seems that this proposed conversion is not in place yet. > > Nothing stops you from using that convention, actually. Have you tried > it? > I was going to ask the same thing. Why do you say the convention isn't in place? It is, in fact,

Re: NewForms Admin - convention

2008-04-30 Thread [EMAIL PROTECTED]
i see. I created a admin.py in my app and added a "import admin" to __init__.py. In the admin.py I had to import all from the models.py. Tested it and it works. Does that sound right? -al On Apr 30, 3:22 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Apr 30, 4:39 am, "[EMAIL PROTECTED]"

Re: NewForms Admin - convention

2008-04-30 Thread Rajesh Dhawan
On Apr 30, 4:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > As per the NewFormsAdmin Branch > -http://code.djangoproject.com/wiki/NewformsAdminBranch > - there is a proposal convention that reads as follows: > > """A proposal convention: Specifying all admin options in a file > called

NewForms Admin - convention

2008-04-30 Thread [EMAIL PROTECTED]
As per the NewFormsAdmin Branch - http://code.djangoproject.com/wiki/NewformsAdminBranch - there is a proposal convention that reads as follows: """A proposal convention: Specifying all admin options in a file called admin.py, and import it in the __init__.py file of your application module to

Re: Avoiding the ThreadLocals hack - anything new in NewForms-Admin?

2008-04-23 Thread SmileyChris
How about this: Set your model's user field so editable=False Sub-class ModelAdmin Override its `save_add` method, setting form.data['user'] = request.user then calling the super method --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Avoiding the ThreadLocals hack - anything new in NewForms-Admin?

2008-04-23 Thread AndyB
in the user as I can't control how save() is called. On a higher level my goal is to limit the Admin changelist to only show the objects associated with the current user. I am using NewForms-Admin so was hoping that there are new ways to achieve this but after a bit of head scratching and source

Newforms-admin - Problem prepopulating an inline slug field

2008-04-22 Thread tenni
I'm trying to prepopulate a slug field with newforms-admin. It works fine for the 'normal' Article model, but the inline Photo model's slug field won't prepopulate from it's title field. (If the code below doesn't make sense, I can paste the whole model.) Two models: Article and Photo

[Newforms-admin] Prepopulating a slug field in an inline

2008-04-22 Thread tenni
I'm trying to prepopulate a slug field with newforms-admin. It works fine for the 'normal' Article model, but the inline Photo model's slug field won't prepopulate from it's title field. (If the code below doesn't make sense, I can paste the whole model.) Two models: Article and Photo

[newforms-admin] prepopulate_from

2008-04-10 Thread Almir Karic
hat am i doing wrong? Traceback (most recent call last): File "./manage.py", line 11, in execute_manager(settings) File "/home/redduck666/django/newforms-admin/django/core/management/__init__.py", line 272, in execute_manager utility.execute() File "/home

Re: newforms-admin questions

2008-04-09 Thread Michael
I have been using NewForms admin for all of my sites for while. It is running smooth and so far I have not had any big roadblock problems. Big HOWEVER though, NewForms Admin is still very much in development. I have found a few issues, that are easy to get around, but issues nonetheless

Re: newforms-admin questions

2008-04-09 Thread [EMAIL PROTECTED]
On Apr 9, 2:54 pm, Kevin Monceaux <[EMAIL PROTECTED]> wrote: > Django Fans, > > > Since newforms-admin will one day replace the current admin my thought > > was to go ahead and dive into it now to save the trouble of duplicating > > the effort when it lands

Re: newforms-admin questions

2008-04-09 Thread Kevin Monceaux
Django Fans, I'd like to second most of Rob's questions. While pondering some of the same questions I came across his post and didn't see a reply. On Sun, 9 Mar 2008, Rob Hudson wrote: > How's the stability and/or "readiness" of newforms-admin? I've just recently converted a w

Re: Strange login error in newforms-admin site: ViewDoesNotExist at /accounts/login/

2008-04-01 Thread Michael
I tried this today with runserver and could not duplicate this issue. It appears to be a mod_python issue. This is interesting. On Tue, Apr 1, 2008 at 8:51 AM, Michael <[EMAIL PROTECTED]> wrote: > > Yours was one of the posts I discovered when I googled this but my > > problem seemed to come

Re: Strange login error in newforms-admin site: ViewDoesNotExist at /accounts/login/

2008-04-01 Thread Michael
> Yours was one of the posts I discovered when I googled this but my > problem seemed to come out of nowhere and your report seemed to imply > a more reproducible issue. It's difficult to reproduce, because it involves a rather deep level of importing and self importing. This happens every

Re: Strange login error in newforms-admin site: ViewDoesNotExist at /accounts/login/

2008-04-01 Thread AndyB
> >  Logout works fine and it doesn't seem to make any difference what my > >  login template contains. As long as it is there I get the same error. > > >  Using a fresh checkout of newforms-admin on both and no other > >  differences that I am aware of. I can't reproduce the err

Re: Strange login error in newforms-admin site: ViewDoesNotExist at /accounts/login/

2008-03-31 Thread Michael
t; Logout works fine and it doesn't seem to make any difference what my > login template contains. As long as it is there I get the same error. > > Using a fresh checkout of newforms-admin on both and no other > differences that I am aware of. I can't reproduce the error from

Strange login error in newforms-admin site: ViewDoesNotExist at /accounts/login/

2008-03-31 Thread AndyB
UserCreationForm Logout works fine and it doesn't seem to make any difference what my login template contains. As long as it is there I get the same error. Using a fresh checkout of newforms-admin on both and no other differences that I am aware of. I can't reproduce the error from the shell

Re: newforms-admin: raw_id_fields works for admin area but not my site

2008-03-28 Thread hotani
Thanks Karen. Looks like that is my problem: using generic views with newforms-admin. I'll need to either hand-roll those problematic forms or wait for the newforms-generic to become available. I'll have to do *something* - one of the foreign keys references a table with 1M rows! That's one

Re: Customized ChoiceField doesn't save properly with newforms-admin

2008-03-27 Thread Julien
oration > option> > > All > > > > > To me, both pieces of code look fairly similar. In my custom widget, > > only the order of appearance, and the name of options change, the id's > > are the same. I don't understand why the value is not saved properly > >

Re: Customized ChoiceField doesn't save properly with newforms-admin

2008-03-26 Thread Julien
the name of options change, the id's are the same. I don't understand why the value is not saved properly when using my custom widget.. I've made custom widgets with newforms- admin in the past and it always worked fine. Do you have an idea of what I could be missing this time? Thanks a lot! Julien

Re: Newforms-admin: filter_horizontal doesn't work

2008-03-10 Thread Webchemist
On 7 мар, 17:07, Brian Rosner <[EMAIL PROTECTED]> wrote: > > "Hold down "Control", or "Command" on a Mac, to select more than one." > > > and NO select boxes, search input etc! > > What revision of newforms-admin are you using? Also, what b

newforms-admin questions

2008-03-09 Thread Rob Hudson
How's the stability and/or "readiness" of newforms-admin? I have a project where I'm going to be needing to do some admin tweaking and it sounds like newforms-admin is much more flexible. For example, here are a few things I'm going to be needing to do... * Auto populate a f

Re: newforms-admin InlineFormSet usage?

2008-03-08 Thread fizban
On Mar 8, 2:03 am, Brian Rosner <[EMAIL PROTECTED]> wrote: [snip] > Given you have a Poll and Choice models your code would look like:: > > ChoiceFormSet = inline_formset(Poll, Choice) [snip] > I know I already spent way too much energy into this even though it may > go away some day

Re: newforms-admin InlineFormSet usage?

2008-03-07 Thread Brian Rosner
> FormSets (including InlineFormSet - and yes, I realize that would be a > patch for the main trunk, but the classes are named in the same way as > in newforms-admin), so I do know the options I'm supposed to pass to > an inline form set; what I do not know is how can I create one! :

Re: newforms-admin InlineFormSet usage?

2008-03-07 Thread Malcolm Tredinnick
On Fri, 2008-03-07 at 16:20 -0800, fizban wrote: > Hi, > > I'm trying to use this newforms-admin to make custom forms for my app/ > project (I have a lot of inline stuff in my models, so it's supposed > to come handy). I've already managed to convert my models to newforms

newforms-admin InlineFormSet usage?

2008-03-07 Thread fizban
Hi, I'm trying to use this newforms-admin to make custom forms for my app/ project (I have a lot of inline stuff in my models, so it's supposed to come handy). I've already managed to convert my models to newforms- admin (it's not that hard since it's documented) and I'm currently able to add

Re: Newforms-admin: filter_horizontal doesn't work

2008-03-07 Thread Brian Rosner
> "Hold down "Control", or "Command" on a Mac, to select more than one." > > and NO select boxes, search input etc! What revision of newforms-admin are you using? Also, what browser is this behavior is displayed i

Newforms-admin: filter_horizontal doesn't work

2008-03-06 Thread Webchemist
Could anybody please explain what are the reasons for filter_horizontal doesn't work in newforms-admin? in models.py for the app: class Block(models.Model): title = models.CharField(max_length=255) code = models.CharField(help_text=u"Допустимы цифры и латинские заглавные

<    1   2   3   4   >