Extra Column, change_list newforms view in admin. recursion issues....

2010-07-07 Thread hagan
I'm hoping somebody has run into this issue before, failing that, perhaps someone can see a glaring mistake in my code.. I'm getting a recursive loop somehow while following the example: http://code.djangoproject.com/wiki/NewformsHOWTO#Q:HowdoIaddanextracolumntothechangelistview In the __init__.p

Re: i can't import newforms(newbie)

2010-06-08 Thread refreegrata
----- > > from django import newforms as forms > > > > django throw an exception : "Error was: cannot import name newforms" > > > But when i do > > ---

re: i can't import newforms(newbie)

2010-06-08 Thread Steven L Smith
Hello, and welcome to Django. A long time ago, the original "forms" was removed and replaced with "newforms". To keep applications working during the transition, both "forms" and "newforms" were kept side-by-side for awhile. The idea was, after the t

Re: i can't import newforms(newbie)

2010-06-08 Thread Dan Harris
Hey there, newforms was renamed to forms for the Django 1.0 release, this is the reason why the statement "from django import newforms as forms" doesn't work (because newforms does not exist anymore). Anywhere you see newforms you can probably replace with forms. What tutorials

Re: i can't import newforms(newbie)

2010-06-08 Thread Michael
On Tue, Jun 8, 2010 at 3:46 PM, refreegrata wrote: > hello list > i'm a newbie with django trying to learn > Now i have a question > when i do > --- > from django i

i can't import newforms(newbie)

2010-06-08 Thread refreegrata
hello list i'm a newbie with django trying to learn Now i have a question when i do --- from django import newforms as forms django throw an exception : "Error was: cannot i

Re: Testing Newforms for Blankness

2009-12-24 Thread Aristotle Miternan
Whoops, I think I misstated my use case. A better description: All the fields are required, but I don't want to return a forms.ValidationError if the entire form is blank, but I do if it is partially filled, I simply want to drop it. Perhaps this is simply bad design. Upon further consideration I

Re: Testing Newforms for Blankness

2009-12-24 Thread Aristotle Miternan
Hi Shawn, I am referring to forms.ModelForm, I think it might apply to forms as well, but I can't think of a good use case off the top of my head. I suppose I might have an uncommon use case. I display a form that has several optional parts (that have different models) that can be dynamically add

Re: Testing Newforms for Blankness

2009-12-24 Thread Shawn Milochik
On Dec 24, 2009, at 2:51 PM, Aristotle Miternan wrote: > Hello all, > >I'm fairly new to Django and I noticed a curious behavior of > forms. I noticed that there is no simple way to test a form for a form > not being filled at all. I think it might be a semi-common use case > that you might

Testing Newforms for Blankness

2009-12-24 Thread Aristotle Miternan
Hello all, I'm fairly new to Django and I noticed a curious behavior of forms. I noticed that there is no simple way to test a form for a form not being filled at all. I think it might be a semi-common use case that you might want to simply not generate a new model instance if a form has no in

Re: Custom field types and newforms admin

2009-08-23 Thread Hanpan
Hi, thanks for the reply. ImageWithThumbsField is custom field which extends ImageField. It creates a thumbnail. I am using it in my model definition, nothing to do with a form. syncdb is ignoring this field when it creates the table completely. On 23 Aug, 18:39, Daniel Roseman wrote: > On Aug

Re: Custom field types and newforms admin

2009-08-23 Thread Hanpan
Hi, thanks for the reply. ImageWithThumbsField is custom field which extends ImageField. It creates a thumbnail. I am using it in my model definition, nothing to do with a form. syncdb is ignoring this field when it creates the table completely. On 23 Aug, 18:39, Daniel Roseman wrote: > On Aug

Re: Custom field types and newforms admin

2009-08-23 Thread Daniel Roseman
On Aug 23, 3:44 pm, Hanpan wrote: > Hi, > > I have created a custom field type, which I am using like so: > > image_thumb = ImageWithThumbsField(_('preview image'), > upload_to='uploads/projects') > > But for some reason, when I run syncdb this custom field is being > completely ignored. I tried

Custom field types and newforms admin

2009-08-23 Thread Hanpan
Hi, I have created a custom field type, which I am using like so: image_thumb = ImageWithThumbsField(_('preview image'), upload_to='uploads/projects') But for some reason, when I run syncdb this custom field is being completely ignored. I tried using the 'widget' argument, but that caused an er

Help w/ Newforms Trouble

2009-06-27 Thread Dylan Lorimer
Hi, I have a newform that works as intended. I want to add admin functionality such that within the same view I can handle creation of a newform or passing back a model's values to the template for editing. This is supposed to be simple with newforms but I'm stuck, hoping for help.

Re: How to create a newforms label unattached to an input field?

2009-05-12 Thread Nash-t
Thanks for the help. I created the custom widget. It works OK but I cannot figure out how to get my custom class (for css) to render . Please check this out when you get a chance. class NakedLabelWidget(forms.Widget): """ A widget that produces a naked label """ def __init__(self, attrs=N

Re: How to create a newforms label unattached to an input field?

2009-05-11 Thread George Song
On 5/11/2009 12:29 PM, Nash-t wrote: > I apologize if this is a dumb newbie question... > I am trying to create a newform label that doesn't have an associated > input field. This label is used as a title for a set of input fields. > I don't want to use django templates because of the way the for

How to create a newforms label unattached to an input field?

2009-05-11 Thread Nash-t
I apologize if this is a dumb newbie question... I am trying to create a newform label that doesn't have an associated input field. This label is used as a title for a set of input fields. I don't want to use django templates because of the way the form/data is passed around and saved on the serv

Re: Many Models, One Form with newforms?

2009-04-08 Thread robstar
Thanks a lot ! That worked great. I can't believe how easy it is to slam everything back into the db using the instance and prefix. Django ftw!! rob > > Just use them all side-by-side in your views and templates,   > potentially using prefixes > (http://docs.djangoproject.com/en/dev/ref/form

Re: Many Models, One Form with newforms?

2009-04-08 Thread Masklinn
fk <- model Ingredients > fk <- model Directions > > Can I render all these related models in one view and handle saving it > through the newforms architecture? > > I tried form inheritance but the metas get

Many Models, One Form with newforms?

2009-04-08 Thread robstar
Ingredients fk <- model Directions Can I render all these related models in one view and handle saving it through the newforms architecture? I tried form inheritance but the metas get overwritten and only the Ingredient fields show up by the time you get to SuperForm: class RecipeForm(Model

Re: Controlling html display of Charfield length on forms...(newforms?)

2009-04-02 Thread NoviceSortOf
text = forms.CharField(label="text", max_length=10, widget=forms.TextInput( attrs={'size':'10', 'class':'inputText'})) Thanks Ayaz the above works perfectly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Controlling html display of Charfield length on forms...(newforms?)

2009-03-26 Thread Ayaz Ahmed Khan
On 26-Mar-09, at 2:26 PM, NoviceSortOf wrote: > It would seem natural that there would be a length or size parameter > on something in forms and/or models Charfield to control the html > display of the field length. How a field in a form in Django is rendered is determined by the corresponding

Controlling html display of Charfield length on forms...(newforms?)

2009-03-26 Thread NoviceSortOf
It would seem natural that there would be a length or size parameter on something in forms and/or models Charfield to control the html display of the field length. ie. firstname = forms.CharField(max_length=20, size = 4) I've found this hack discussed to the fields.py [link below] but it dates

Re: Trouble with accents when passing tranlsated string with newforms

2009-03-09 Thread Malcolm Tredinnick
On Tue, 2009-03-10 at 13:15 +1100, Malcolm Tredinnick wrote: > On Mon, 2009-03-09 at 07:55 -0700, Tipan wrote: > > > > > Do you mean they are inserted into the source as "ó" and so > > > the user sees, literally, "ó"? > > > > > > > Yes. The string has the html code for the accent as you s

Re: Trouble with accents when passing tranlsated string with newforms

2009-03-09 Thread Malcolm Tredinnick
On Mon, 2009-03-09 at 07:55 -0700, Tipan wrote: > > > Do you mean they are inserted into the source as "ó" and so > > the user sees, literally, "ó"? > > > > Yes. The string has the html code for the accent as you show above. I showed two possiblities. Which one is it? If the string is be

Re: Trouble with accents when passing tranlsated string with newforms

2009-03-09 Thread Tipan
> Do you mean they are inserted into the source as "ó" and so > the user sees, literally, "ó"? > Yes. The string has the html code for the accent as you show above. > This could be a bug. Any strings provided by Django itself (and this > includes translated strings, although we don't mak

Re: Trouble with accents when passing tranlsated string with newforms

2009-03-08 Thread Malcolm Tredinnick
On Sun, 2009-03-08 at 04:55 -0700, Tipan wrote: > I'm trying to pass a translated string to a select box using a Forms > Select widget and it always presents the output string with all the > accent HTML entity codes. > > In my models file, I have a range of subjects: > > Models.py > from django.

Trouble with accents when passing tranlsated string with newforms

2009-03-08 Thread Tipan
I'm trying to pass a translated string to a select box using a Forms Select widget and it always presents the output string with all the accent HTML entity codes. In my models file, I have a range of subjects: Models.py from django.utils import translation from django.utils.translation import ug

Re: newforms library.

2009-01-12 Thread David Zhou
On Mon, Jan 12, 2009 at 8:25 AM, Karen Tracey wrote: > On Mon, Jan 12, 2009 at 6:11 AM, seki wrote: >> >> Hi guys, >> I have been teaching myself Django and I have worked with the latest >> release. To me it seems the new library isn't shipped with the >&g

Re: newforms library.

2009-01-12 Thread Karen Tracey
On Mon, Jan 12, 2009 at 6:11 AM, seki wrote: > > Hi guys, > I have been teaching myself Django and I have worked with the latest > release. To me it seems the new library isn't shipped with the > newforms library ( i.e Django-1.0.2-final)... > I just coppied the librar

newforms library.

2009-01-12 Thread seki
Hi guys, I have been teaching myself Django and I have worked with the latest release. To me it seems the new library isn't shipped with the newforms library ( i.e Django-1.0.2-final)... I just coppied the library from an older version. Hope that's p

Re: clear a newforms error indicator

2008-11-24 Thread Malcolm Tredinnick
Hi Robin, On Mon, 2008-11-24 at 12:45 +, Robin Becker wrote: > We have some legacy code that wants to display a partially filled form. One > of > the fields is required to be non-empty (it's a captcha) so when re-issuing > the > form partially filled I've been doing this > > class EmailF

clear a newforms error indicator

2008-11-24 Thread Robin Becker
We have some legacy code that wants to display a partially filled form. One of the fields is required to be non-empty (it's a captcha) so when re-issuing the form partially filled I've been doing this class EmailForm(forms.Form): . vericode = forms.CharField(max_length=5, required=True

Re: num_in_admin equivalent in newforms

2008-11-04 Thread Xiong Chiamiov
Actually, extra by itself does exactly what I want. For some reason I couldn't see it - I guess I just got caught up in the specific name. Thanks. On Nov 4, 10:32 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Nov 4, 5:57 pm, Xiong Chiamiov <[EMAIL PROTECTED]> wrote: > > > I'm in the process

Re: num_in_admin equivalent in newforms

2008-11-04 Thread Daniel Roseman
On Nov 4, 5:57 pm, Xiong Chiamiov <[EMAIL PROTECTED]> wrote: > I'm in the process of converting a bunch of sites from pre-nfa to > 1.0.  One of the things I've run across is the change in inlines in > the admin interface.  Previously, there was > (http://www.djangoproject.com/documentation/0.96/m

num_in_admin equivalent in newforms

2008-11-04 Thread Xiong Chiamiov
I'm in the process of converting a bunch of sites from pre-nfa to 1.0. One of the things I've run across is the change in inlines in the admin interface. Previously, there was (http:// www.djangoproject.com/documentation/0.96/model-api/#many-to-one-relationships) a parameter called num_in_admin

Re: newforms question

2008-10-17 Thread Daniel Roseman
On Oct 17, 5:50 pm, Jeff Gentry <[EMAIL PROTECTED]> wrote: > > Oops. It could also read > >     from django import newforms as forms > > in which case you should change it to > >     from django import forms > > Right, that's what I was thinking. > &

Re: newforms question

2008-10-17 Thread Jeff Gentry
> Oops. It could also read > from django import newforms as forms > in which case you should change it to > from django import forms Right, that's what I was thinking. > but I hope you've got the idea: basically newforms has *become* forms. Yup - just wa

Re: newforms question

2008-10-17 Thread Steve Holden
Jeff Gentry wrote: > Hi there ... > > To date, I've not been using Django's form system (nor 'newforms'), but am > trying to integrate another app into a suite that I'm developing. The > code on this is a bit older and is using newforms - when I fire

Re: newforms question

2008-10-17 Thread Steve Holden
Jeff Gentry wrote: > Hi there ... > > To date, I've not been using Django's form system (nor 'newforms'), but am > trying to integrate another app into a suite that I'm developing. The > code on this is a bit older and is using newforms - when I fire

Re: newforms question

2008-10-17 Thread Jeff Anderson
Jeff Gentry wrote: > Hi there ... > > To date, I've not been using Django's form system (nor 'newforms'), but am > trying to integrate another app into a suite that I'm developing. The > code on this is a bit older and is using newforms - when I fire up the

newforms question

2008-10-17 Thread Jeff Gentry
Hi there ... To date, I've not been using Django's form system (nor 'newforms'), but am trying to integrate another app into a suite that I'm developing. The code on this is a bit older and is using newforms - when I fire up the server (running off of the 1.0 branc

Need help with newforms ...

2008-10-17 Thread dbee
{{ g.name }} {% endfor %} Couldn't be simpler. But now in newforms, i'm a bit lost ... VIEWS: # Get all that user's groups groups = Groups.objects.filter(userProfile__user__pk=request.user.

Re: Django-Registration and NewForms Error

2008-10-08 Thread Chris Spencer
gg/registration/views.py", line 12, in >> >> File "/usr/lib/python2.5/site-packages/django_registration-0.5- >> py2.5.egg/registration/forms.py", line 7, in >> >> ImportError: cannot import name newforms >> [...] >> >> >

Re: Django-Registration and NewForms Error

2008-10-08 Thread Steve Holden
egister, I > get the error: > > File "/usr/lib/python2.5/site-packages/django_registration-0.5- > py2.5.egg/registration/views.py", line 12, in > > File "/usr/lib/python2.5/site-packages/django_registration-0.5- > py2.5.egg/registration/forms

Re: Django-Registration and NewForms Error

2008-10-08 Thread Rishabh Manocha
kages/django_registration-0.5- > py2.5.egg/registration/views.py", line 12, in > > File "/usr/lib/python2.5/site-packages/django_registration-0.5- > py2.5.egg/registration/forms.py", line 7, in > > ImportError: cannot import name newforms > > Does anyone know wha

Django-Registration and NewForms Error

2008-10-08 Thread Chris
r/lib/python2.5/site-packages/django_registration-0.5- py2.5.egg/registration/forms.py", line 7, in ImportError: cannot import name newforms Does anyone know what would cause this error? The line it's complaining about is "from django import forms", which if I try from the comma

ManyToMany relation and admin newforms

2008-09-30 Thread Jens
Hello django-users, after searching google and this group and not finding any helpful answers I hope you can help me. I am making an event-app which allows me to manage my own events I organize for me and my friends. I add my friends to the database. Then I create an event and choose which frien

Re: No delete in newforms-admin

2008-09-29 Thread krylatij
Add extra variable to the context in this way: http://code.djangoproject.com/wiki/NewformsHOWTO#Q:HowcanIpassextracontextvariablesintomyaddandchangeviews then override your submit_line.html template and put into it something like that: {% if my_show_delete_link %} {% if show_delete_link %}{% tran

No delete in newforms-admin

2008-09-29 Thread [EMAIL PROTECTED]
I like that there's a "delete" checkbox with NFA, but what if I don't want the item to be delete-able? I have a case where I'm they're an inline, and I don't want anyone to be able to delete those items unless the parent is deleted. Can this be done? --~--~-~--~~~---~--

Re: Newforms admin and custom widgets

2008-09-17 Thread Rob Hudson
I was playing with this again tonight and it's just not working for me no matter what I try. I'm wondering if there are issues with ManyToMany and Inlines and trying to override them? On Jul 24, 5:23 pm, "Rob Hudson" <[EMAIL PROTECTED]> wrote: > > SpecialBookFormSet = inlineformset_factory(News

Re: AlreadyRegistered Exception after newforms-admin merge

2008-09-10 Thread ryan
Good catch. Thank you On Aug 3, 10:14 pm, "Pedro Valente" <[EMAIL PROTECTED]> wrote: > I'm not sure if it's your case, but I got the AlreadyRegistered errors > because before the merge I used the NFA branch and had an admin import > inside __init__.py (not needed anymore). > > I had forgotten abo

newforms: construct 1 widget from 2 fields

2008-09-08 Thread martydotcom
Hi guys, Does anyone know if it's possible to construct a single widget from 2 model fields? I want to make a "Select" widget, with a primary value, and a related value eg: object whos id is 1, and whose foreign key is 7 Any ideas much appreciated. Thanks, Martin --~--~-~--~~

Re: Workflow Building with NewForms, ModelForm

2008-09-05 Thread MiloZ
Hi, GoFlow, a (the) workflow engine for django: http://code.google.com/p/goflow/ GoFlow provides built-in applications that uses modelforms to edit workflow objects. Cheers, Eric Simorre On Aug 18, 9:52 pm, DoctorMO <[EMAIL PROTECTED]> wrote: > Hello All, > > This is just a quick FYI to state w

Re: newforms problem

2008-09-01 Thread Jesse
I have to say, I discovered my own problem, as usually happens directly after I make a post for help. The documentation has listed: Model FieldForms Field TextFieldCharField with widget=Textarea I tried that to no avail. Eventually I found a snippet of co

newforms problem

2008-09-01 Thread Jesse
I'm terribly new and inexperienced, and after 30-40 minutes of googling I cannot find anything to help my problem: class roomForm(forms.Form): authorName = forms.CharField(max_length = "30") authorWebsite = forms.CharField(max_length = "50") title = forms.CharField(max_len

Customizing newforms-admin -- collapsing apps?

2008-08-20 Thread [EMAIL PROTECTED]
Has anyone customized the admin (specifically with newforms-admin) to collapse/expand apps? I'd like to keep them out of the way as much as possible. I'm thinking some javascript that would expand/collapse them and store the preference in a cookie or the session. Is this a dumb idea?

Workflow Building with NewForms, ModelForm

2008-08-18 Thread DoctorMO
Hello All, This is just a quick FYI to state what I'm currently working on and see if anyone has anything to add or good ideas (or even criticisms) Since django can do model forms which reflect a models fields and save the created object appropriately. I'm researching the possibility of creating

newforms generic and hidden fields in form

2008-07-25 Thread hotani
I had a form that was working with oldforms generic and had some hidden fields. After the newforms-admin merge and newforms-generic, the hidden fields are being passed as NULL. In 'BackwardsIncompatibleChanges,' it says "You'll probably need to update any templates used by th

django-tagging and newforms admin

2008-07-25 Thread eka
Hi, Any one knows if the newforms-admin branch of the django-tagging project is merged in the trunk? or they will continue to update on that branch? Regars. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: newforms-admin weird error ( 'str' object has no attribute '_default_manager' )

2008-07-25 Thread vv2
I am experiencing same error message with r8053, however my situation is a bit different: - commenting out fieldsets definition doesn't help, - everything works perfectly on local dev server and fails deployed through mod_wsgi and mod_python (I didn't try with fcgi) I managed to narrow down the p

Re: newforms-admin weird error ( 'str' object has no attribute '_default_manager' )

2008-07-25 Thread Bram de Jong
ld experiment with removing pieces > of it to see which field is causing the error. Basic fieldsets validation > works (I'm sure it's got tests and I have models that use it and still work > on current newforms-admin), so it's something specific to your model. If > you

Re: Newforms admin problem: TemplateSyntaxError at /admin/

2008-07-24 Thread Florencio Cano
solate the error. 2008/7/21 Karen Tracey <[EMAIL PROTECTED]>: >> Uhm, the solution was to delete the database and recreate it. Now it >> runs correctly. > > Note this sort of thing (delete/recreate database) IS NOT generally > necessary for updating to the newforms admin

Re: URL problems after newforms admin migration

2008-07-24 Thread Karen Tracey
On Tue, Jul 22, 2008 at 2:17 PM, Matthew <[EMAIL PROTECTED]> wrote: > > Hey everyone, I recently updated a development version of my Django > site to use the newforms admin, following the tutorial here > > http://oebfare.com/blog/2008/jul/20/newforms-admin-migration-and-scre

Re: Custom permission problem in newforms-admin

2008-07-23 Thread Brandon Taylor
Doh! You're absolutely right Malcom. Sorry, don't know why I didn't see that before. So, now that I have my lovely permission, I have a new problem... I need the ability to let a user 'add' a story, even if they can't 'approve' one. So, I'm wondering where I should try to disable the field? In th

Re: Migrating to newforms-admin and classes already registered error

2008-07-22 Thread Peter Bailey
That works much better Malcolm, thank you very much. Appreciate the explanations too. Cheers, Peter On Jul 22, 3:23 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-22 at 12:21 -0700, Peter Bailey wrote: > > Hi all. I am attempting to convert an app I am writing to use the n

Re: URL problems after newforms admin migration

2008-07-22 Thread Matthew
]> wrote: > > > Hey everyone, I recently updated a development version of my Django > > site to use the newforms admin, following the tutorial here > > >http://oebfare.com/blog/2008/jul/20/newforms-admin-migration-and-scre... > > It all went fairly well, but I do hav

Re: superuser has no rights with newforms admin

2008-07-22 Thread stranger
ister() but it still shows me permission denied. I am the only super user on the site. Any recommendations. On Jul 21, 12:46 am, "Justin Wong" <[EMAIL PROTECTED]> wrote: > Never mind,newforms-adminworks great. :) > > I forgot that I had copied a custom version of the ol

Migrating to newforms-admin and classes already registered error

2008-07-22 Thread Peter Bailey
Hi all. I am attempting to convert an app I am writing to use the nfa. I have looked at all the docs available about this, but must have missed something. I am using: Django version 1.0-alpha-SVN-8053 Anyway, I have changed my urls.py file to be like so: from django.contrib import admin (r

Extending Newforms Admin with functionality

2008-07-22 Thread gnijholt
Hello django-users, What is the preferred way of extending the Admin interface with functionality (not just a template override) (using the newforms admin)? I ask because I'm trying to build something simple. I have a model NewsletterSubscriber which has just a name, an active boolean, and

Custom permission problem in newforms-admin

2008-07-21 Thread Brandon Taylor
Hi everyone, I'm trying to enforce a customer permission on Add/Update. In my model, I have defined the permission: permissions = ( ('can_approve_stories','Can Approve Stories'), ) in my model.ModelAdmin I have: def change_view(self, request, obj_id): i

Re: Custom permission problem in newforms-admin

2008-07-21 Thread [EMAIL PROTECTED]
I believe you can override get_form and have it create a new modelform for each request, you'd probably have to look into the source to see what the method and signature look like. On Jul 21, 8:04 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Doh! You're absolutely right Malcom. Sorry, don't k

Re: Newforms admin problem: TemplateSyntaxError at /admin/

2008-07-21 Thread Florencio Cano
Uhm, the solution was to delete the database and recreate it. Now it runs correctly. 2008/7/21 Florencio Cano <[EMAIL PROTECTED]>: > Hi, > After viewing the new documentation for the admin interface and > modifying, properly I think, the files when I try to access > http://localhost:8000/admin/ I

Re: Newforms admin problem: TemplateSyntaxError at /admin/

2008-07-21 Thread Karen Tracey
On Mon, Jul 21, 2008 at 10:59 AM, Florencio Cano <[EMAIL PROTECTED]> wrote: > > Uhm, the solution was to delete the database and recreate it. Now it > runs correctly. > Note this sort of thing (delete/recreate database) IS NOT generally necessary for updating to the newforms ad

Re: Custom permission problem in newforms-admin

2008-07-21 Thread Malcolm Tredinnick
On Mon, 2008-07-21 at 15:46 -0700, Brandon Taylor wrote: > Hi everyone, > > I'm trying to enforce a customer permission on Add/Update. In my > model, I have defined the permission: > > permissions = ( >('can_approve_stories','Can Approve Stories'), > ) > > > >

Re: How to display UserProfiles in newforms-admin

2008-07-21 Thread [EMAIL PROTECTED]
On Jul 20, 4:22 pm, slav0nic <[EMAIL PROTECTED]> wrote: > #admin.py > from django.contrib import admin > from profile.models import UserProfile > from django.contrib.auth.models import User > > class ProfileInline(admin.StackedInline): > model = UserProfile > extra = 1 > max_num = 1 >

How to display UserProfiles in newforms-admin

2008-07-21 Thread Bernd Donner
CKED) How can the same effect be achieved with newforms-admin? Thanks for your help, Bernd Donner --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: superuser has no rights with newforms admin

2008-07-21 Thread Justin Wong
Never mind, newforms-admin works great. :) I forgot that I had copied a custom version of the old admin templates and it was parsing that instead. Cheers! Justin On Sun, Jul 20, 2008 at 7:27 PM, Justin Wong <[EMAIL PROTECTED]> wrote: > Well, I tracked down the admin/index.html page

Re: How to display UserProfiles in newforms-admin

2008-07-21 Thread Malcolm Tredinnick
.Model): > ... > user = models.ForeignKey(User, unique=True, edit_inline=models.STACKED) > > How can the same effect be achieved with newforms-admin? Have you searched for the word "inline" in the admin documentation (or the backwards incompatible changes entry for this cha

Re: superuser has no rights with newforms admin

2008-07-20 Thread Justin Wong
rl': 'market/order/', 'name': , 'perms': { 'add': True, 'change': True, 'delete': True}},

Re: superuser has no rights with newforms admin

2008-07-20 Thread Justin Wong
es, and my apps are being imported correctly. I'm not getting error messages telling me that I'm importing multiple times. I'm logged on as the superuser, so that shouldn't be a problem... right? I started a new project and newforms-admin seems to work great. If anyone has an

Re: superuser has no rights with newforms admin

2008-07-20 Thread Karen Tracey
pped it, ran the development server, and all went to my localhost admin page and I have 'Auth', 'People' and 'Sites' I can edit. I'm running trunk r8007. You can't really be using trunk 7951 -- that's from before newforms-admin merge which was 7967?? T

Re: How to display UserProfiles in newforms-admin

2008-07-20 Thread Adi J. Sieker
ing like: > > class UserProfile(models.Model): > ... > user = models.ForeignKey(User, unique=True, edit_inline=models.STACKED) > > How can the same effect be achieved with newforms-admin? The docs know all: http://www.djangoproject.com/documentation/admin/#inlinemodeladmin-object

Re: How to display UserProfiles in newforms-admin

2008-07-20 Thread [EMAIL PROTECTED]
min site. > > > This was > > > done by somthing like: > > > > class UserProfile(models.Model): > > >   ... > > >   user = models.ForeignKey(User, unique=True, edit_inline=models.STACKED) > > &g

Re: How to display UserProfiles in newforms-admin

2008-07-20 Thread Bernd Donner
> > This was > > done by somthing like: > > > > class UserProfile(models.Model): > > ... > > user = models.ForeignKey(User, unique=True, edit_inline=models.STACKED) > > > > How can the same effect be achieved with newforms-admin? > > The

Re: How to display UserProfiles in newforms-admin

2008-07-20 Thread slav0nic
#admin.py from django.contrib import admin from profile.models import UserProfile from django.contrib.auth.models import User class ProfileInline(admin.StackedInline): model = UserProfile extra = 1 max_num = 1 class ProfileAdmin(admin.ModelAdmin): inlines = (ProfileInline,) admi

Re: superuser has no rights with newforms admin

2008-07-20 Thread eka
Hi I'm installing it from SVN and got "You don't have permission to edit anything", I made it work before, but now when I try to follow the book can't. Could you tell me what should I add to have full permissions? Regards On Jul 20, 7:43 am, "Jon Atkinson" <[EMAIL PROTECTED]> wrote: > On Sun, Ju

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
> You can't really be using trunk 7951 -- that's from before newforms-admin > merge which was 7967?? Try updating to latest trunk? So I feel slightly ... foolish :-) --Jon --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
...so if you were > running 7951 it must have been a newforms-admin branch version? Not sure > why that wouldn't have worked but if it's fixed in latest it's probably not > worth tracking down. Yes, it does work for me. I had both the newforms-admin and an older trunk checked

Re: superuser has no rights with newforms admin

2008-07-20 Thread Karen Tracey
On Sun, Jul 20, 2008 at 12:32 PM, Jon Atkinson <[EMAIL PROTECTED]> wrote: > > > You can't really be using trunk 7951 -- that's from before newforms-admin > > merge which was 7967?? Try updating to latest trunk? > > So I feel slightly ... foolish :-) > Do

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
__init__.py file; that was the > recommendation when I first migrated to newforms-admin but it led to > multiple registrations like this so was replaced by autodiscover(). You > should not have an explicit import of your app's admin anywhere; > autodiscover() is, I believe, th

Re: superuser has no rights with newforms admin

2008-07-20 Thread Karen Tracey
I'm not sure what 'book' is being referred to here, since there's certainly nothing printed that covers newforms-admin. Even the tutorial, I believe, is still missing mention of autodiscover(), which means if you are following it exactly that may be why you are getting this messa

Re: superuser has no rights with newforms admin

2008-07-20 Thread Karen Tracey
ot put a print in before the import and ensure > >> > adutodiscover() is really being called and attempting to import the > admin > >> > module for each installed app. > > Okay, I've spent a little time on this. There seem to be a few problems. > > First of

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
being called and attempting to import the admin >> > module for each installed app. Okay, I've spent a little time on this. There seem to be a few problems. First of all, I'm a little confused about where to use admin.site.register(). A few months ago I checked out the newform

Re: superuser has no rights with newforms admin

2008-07-20 Thread eka
p, at a minimum, is being found by > autodiscover(). If not put a print in before the import and ensure > adutodiscover() is really being called and attempting to import the admin > module for each installed app. > > (Also I'm not sure what 'book' is being referred to here

Re: superuser has no rights with newforms admin

2008-07-20 Thread eka
utodiscover() is really being called and attempting to import the admin > > module for each installed app. > > > (Also I'm not sure what 'book' is being referred to here, since there's > > certainly nothing printed that covers newforms-admin.  Even the tut

Re: Great work with newforms-admin

2008-07-20 Thread Kenneth Gonsalves
On 19-Jul-08, at 10:34 PM, Ramdas S wrote: > Can you just share the wiki page link please. I need some place to > start start with an svn co. keep running the prog till there are no errors. -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/code/ --~--~-~--~-

Re: custom AdminSite access for non-staff user (newforms-admin)

2008-07-20 Thread Karen Tracey
On Sun, Jul 20, 2008 at 3:37 AM, SanPy <[EMAIL PROTECTED]> wrote: > Is it possible to allow a non-staff member access to a custom > AdminSite? When I try to login as a non-staff user, I get the error > message: "Please enter a correct username and password. Note that both > fields are case-sensiti

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
On Sun, Jul 20, 2008 at 2:01 AM, stryderjzw <[EMAIL PROTECTED]> wrote: > > Strange, I'm getting the message "You don't have permission to edit > anything." on the admin homepage. I've done admin.autodiscover() on > the project urls page, I've created admin.py files for my models and > registered t

  1   2   3   4   5   6   7   8   9   10   >