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

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

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 >

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

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 %}{%

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 =

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

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? Has anyone

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

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

2008-07-25 Thread Bram de Jong
u could 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 could strip yo

Re: Newforms admin problem: TemplateSyntaxError at /admin/

2008-07-24 Thread Florencio Cano
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 code, whi

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

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

Re: URL problems after newforms admin migration

2008-07-22 Thread Matthew
y 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 have one major problem thou

Re: superuser has no rights with newforms admin

2008-07-22 Thread stranger
I am using django (revision 8055.). after updating the site seems to work fine but the admin panel still shows me You don't have permission to edit anything. I do have admin.autodiscover() and induvidually registered models in admin.py in all apps. I tried commenting out the

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

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 an e

Custom permission problem in newforms-admin

2008-07-22 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):

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

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/

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

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
t be a problem... right? > > I started a new project and newforms-admin seems to work great. > > If anyone has any more suggestions, it'd be great! (What file is this > message from?) > > > Cheers! > Justin > > > On Sun, Jul 20, 2008 at 6:21 AM, Karen Tracey <

Re: superuser has no rights with newforms admin

2008-07-20 Thread Justin Wong
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 any more suggestions, it'd be great!

Re: superuser has no rights with newforms admin

2008-07-20 Thread Karen Tracey
, 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?? Try updating to latest trunk? Karen --~--~-~--~~~--

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,)

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,

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 subscribed to the

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
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 out on my machine,

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 :-) > Does that

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
it__.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, the only thing that sh

Re: superuser has no rights with newforms admin

2008-07-20 Thread Karen Tracey
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 message.) Karen > Regards > On J

Re: superuser has no rights with newforms admin

2008-07-20 Thread Karen Tracey
rint 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 all, I'm a lit

Re: superuser has no rights with newforms admin

2008-07-20 Thread Jon Atkinson
ng 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 newforms-admin branch to try to get

Re: superuser has no rights with newforms admin

2008-07-20 Thread eka
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, since there's > certainly nothing p

Re: superuser has no rights with newforms admin

2008-07-20 Thread eka
d 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 tutorial, I > > believe, is still missing mention of

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

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

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

2008-07-20 Thread SanPy
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-sensitive." Regards, Sander.

Re: How to have both newforms-admin and previous version on the same machine?

2008-07-20 Thread Andre Meyer
hi all newforms-admin has been merged, so you can go back to trunk. anyway, maybe you can do the same as i do: put a django.pth file in site-packages which includes all the paths to the branches you want to use. just uncomment the one you want to use at a given moment. you can add more paths

Re: How to have both newforms-admin and previous version on the same machine?

2008-07-20 Thread ge
u can not set it in > > settings. > > custom env scripts work well (and I recommend virtualenv) > > > hope this helps. > > >     -Doug > > > On Jul 19, 9:26 pm, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > > > I'm looking foward to trying out the

Re: Great work with newforms-admin

2008-07-19 Thread Tom Badran
>> On Sat, Jul 19, 2008 at 10:28 PM, Tom Badran <[EMAIL PROTECTED]> wrote: >> >>> I've just updated 2 of my sites to use newforms-admin today following the >>> changes on the django wiki. I've not been paying attention to the >>> development of newfo

Re: Great work with newforms-admin

2008-07-19 Thread Karen Tracey
odrigo Culagovski <[EMAIL PROTECTED]> > wrote: > >> >> Is there a complete reference for newforms-admin (not a FAQ, tutorial >> or changelist) other than the code itself? >> > > http://www.djangoproject.com/documentation/admin/ > > Karen > > > >

Re: How to have both newforms-admin and previous version on the same machine?

2008-07-19 Thread Rodrigo Culagovski
tings. > custom env scripts work well (and I recommend virtualenv) > > hope this helps. > >     -Doug > > On Jul 19, 9:26 pm, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > > I'm looking foward to trying out the merged newforms-admin on my > > upcoming pr

Re: How to have both newforms-admin and previous version on the same machine?

2008-07-19 Thread [EMAIL PROTECTED]
. because you need django for settings.py, you can not set it in settings. custom env scripts work well (and I recommend virtualenv) hope this helps. -Doug On Jul 19, 9:26 pm, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > I'm looking foward to trying out the merged newforms-ad

How to have both newforms-admin and previous version on the same machine?

2008-07-19 Thread Rodrigo Culagovski
I'm looking foward to trying out the merged newforms-admin on my upcoming projects. However, I have a few ongoing projects already developed using pre-newforms-admin django. I make changes to the projects on my local machine and test them before comitting them to the remote production sites, so

Re: superuser has no rights with newforms admin

2008-07-19 Thread stryderjzw
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 the classes with admin.site.register(). Any clues? Cheers! Justin On Jul 19,

Re: Great work with newforms-admin

2008-07-19 Thread Martin Diers
igo Culagovski <[EMAIL PROTECTED] > > wrote: > > Is there a complete reference for newforms-admin (not a FAQ, tutorial > or changelist) other than the code itself? > > http://www.djangoproject.com/documentation/admin/ > > Karen > > > > > --~--~-~--

Re: Great work with newforms-admin

2008-07-19 Thread Rodrigo Culagovski
Thanks! Super fast, too. On Jul 19, 8:54 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, Jul 19, 2008 at 8:50 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> > wrote: > > > > > Is there a complete reference for newforms-admin (not a FAQ, tutorial &g

Re: Great work with newforms-admin

2008-07-19 Thread Karen Tracey
On Sat, Jul 19, 2008 at 8:50 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > Is there a complete reference for newforms-admin (not a FAQ, tutorial > or changelist) other than the code itself? > http://www.djangoproject.com/documenta

Re: Great work with newforms-admin

2008-07-19 Thread Rodrigo Culagovski
Is there a complete reference for newforms-admin (not a FAQ, tutorial or changelist) other than the code itself? On Jul 19, 4:46 pm, "Tom Badran" <[EMAIL PROTECTED]> wrote: > Yes the first link is the one i used. > > Tom > > On Sat, Jul 19, 2008 at 6:21 PM, J

Great work with newforms-admin

2008-07-19 Thread Tom Badran
I've just updated 2 of my sites to use newforms-admin today following the changes on the django wiki. I've not been paying attention to the development of newforms-admin, so i was going into this completely blind as it were. Just wanted to say everyone who worked on this has done a wonderful job

Re: superuser has no rights with newforms admin

2008-07-19 Thread Brian Rosner
On Jul 19, 2008, at 10:36 AM, Eric Abrahamsen wrote: > Short answer: register all your models with admin.site.register(), and > use admin.autodiscover() too. This is correct. admin.autodiscover() simply imports admin.py modules in your INSTALLED_APPS. Previously, in the days of the branch,

Re: Great work with newforms-admin

2008-07-19 Thread Ramdas S
gt; >> Ramdas >> >> On Sat, Jul 19, 2008 at 10:28 PM, Tom Badran <[EMAIL PROTECTED]> wrote: >> >>> I've just updated 2 of my sites to use newforms-admin today following the >>> changes on the django wiki. I've not been paying attention to the >>

Re: Great work with newforms-admin

2008-07-19 Thread James Punteney
you just share the wiki page link please. I need some place to start > > > Ramdas > > On Sat, Jul 19, 2008 at 10:28 PM, Tom Badran <[EMAIL PROTECTED]> wrote: > >> I've just updated 2 of my sites to use newforms-admin today following the >> changes

Re: Great work with newforms-admin

2008-07-19 Thread Ramdas S
Tom, Can you just share the wiki page link please. I need some place to start Ramdas On Sat, Jul 19, 2008 at 10:28 PM, Tom Badran <[EMAIL PROTECTED]> wrote: > I've just updated 2 of my sites to use newforms-admin today following the > changes on the django wiki. I've not been payi

Re: superuser has no rights with newforms admin

2008-07-19 Thread Karen Tracey
On Sat, Jul 19, 2008 at 12:36 PM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > > > I've tried alternating between using admin.autodiscover() in my > > urls.py, and manually registering my models using > > admin.site.register(Person), but I still get the permission error in > > the admin site.

Re: superuser has no rights with newforms admin

2008-07-19 Thread Eric Abrahamsen
> I've tried alternating between using admin.autodiscover() in my > urls.py, and manually registering my models using > admin.site.register(Person), but I still get the permission error in > the admin site. I've also tried flushing the database, but that > doesn't seem to solve anything. FWIW, my

Re: newforms-admin branch has been merged into trunk

2008-07-19 Thread Brian Rosner
On Jul 18, 2008, at 6:22 PM, Ariel Mauricio Nunez Gomez wrote: > BTW: Bryan, you've gotta redo the commits visualization[1] for > another big explosion!! I plan on updating the visualization right after we release 1.0. :) --~--~-~--~~~---~--~~ You received

Re: superuser has no rights with newforms admin

2008-07-19 Thread Jon Atkinson
> Figured out what went wrong. You now have to register your models > with the admin app, which will give you access. > > If anyone else that is completely awful at Django is running into the > same problem let me know and I'll go in to more depth. Could you let me know what you did to fix

Re: newforms-admin branch has been merged into trunk

2008-07-19 Thread Karen Tracey
On Fri, Jul 18, 2008 at 10:11 PM, Robvdl <[EMAIL PROTECTED]> wrote: > > Thanks very much for this > > I have been running Newforms Admin for a while, so when the big > changeover was going to hit, I would be ready, not changing too much > existing code. > > One th

Re: superuser has no rights with newforms admin

2008-07-19 Thread joshuajenkins
Figured out what went wrong. You now have to register your models with the admin app, which will give you access. If anyone else that is completely awful at Django is running into the same problem let me know and I'll go in to more depth. On Jul 18, 11:16 pm, joshuajenkins <[EMAIL PROTECTED]>

superuser has no rights with newforms admin

2008-07-19 Thread joshuajenkins
Just upgraded to the new trunk which includes the newforms addition to the admin app, so obviously I'm very excited to play around with it. Decided to port over a very very new app, which is basically just a model definition at this point. However when I create my superuser and log in the admin

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Eric Abrahamsen
Beers all around! On Jul 19, 2008, at 8:01 AM, Brian Rosner wrote: > > I have just recently merged the newforms-admin branch into trunk as of > r7967 [1]. This is an extremely backward incompatible change. The > entire admin application in contrib has been refactored. The newforms

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Robvdl
t; <[EMAIL PROTECTED]> wrote: > On Fri, Jul 18, 2008 at 10:11 PM, Robvdl <[EMAIL PROTECTED]> wrote: > > > Thanks very much for this > > > I have been running Newforms Admin for a while, so when the big > > changeover was going to hit, I would be ready, not chang

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Robvdl
Thanks very much for this I have been running Newforms Admin for a while, so when the big changeover was going to hit, I would be ready, not changing too much existing code. One thing I noticed now, running SVN 7968 vs my last checkout I did of the old Newforms Admin branch (7871): - The Auth

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Chris H.
For those who aren't ready to move towards newforms-admin, Jacob has created a notable_moments/pre-newforms-admin tag. A BIG thanks to Brian and all those who had a hand in getting us to this day! Thanks!! -C --~--~-~--~~~---~--~~ You received this message

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Ariel Mauricio Nunez Gomez
Thanks a lot!! BTW: Bryan, you've gotta redo the commits visualization[1] for another big explosion!! [1] http://oebfare.com/blog/2008/jun/24/django-code_swarm/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Frank Singleton
Brian Rosner wrote: > I have just recently merged the newforms-admin branch into trunk as of > r7967 [1]. A BIG Thankyou to all involved !! Cheers / Frank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread mtrier
On Jul 18, 8:01 pm, Brian Rosner <[EMAIL PROTECTED]> wrote: > I have just recently merged the newforms-admin branch into trunk as of   > r7967 [1]. This is an extremely backward incompatible change. The   > entire admin application in contrib has been refactored. The newforms   >

newforms-admin branch has been merged into trunk

2008-07-18 Thread Brian Rosner
I have just recently merged the newforms-admin branch into trunk as of r7967 [1]. This is an extremely backward incompatible change. The entire admin application in contrib has been refactored. The newforms module has a few new features, but those changes are backward compatible

Newforms admin and custom widgets

2008-07-18 Thread Rob Hudson
Hello, This is question my get long so I'll post the short version then the longer more detailed version: The short: My goal is provide the user with an autocomplete AJAX widget to quickly look up ISBNs. The ISBNs will end up in a text field in HTML to be sent back to the backend where I'd like

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

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 10:57 AM, Bram de Jong <[EMAIL PROTECTED]> wrote: > > Hello all, > > just updated to latest newforms-admin (r7947) and > Do you know what level you updated from? That's always handy to know when trying to pinpoint when a problem was introduced.

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

2008-07-18 Thread Bram de Jong
Hello all, just updated to latest newforms-admin (r7947) and This is the admin for one of my (rather large) models: class Sound(SocialModel): # SocialModel is a model that defines some GenericRelation user = models.ForeignKey(User) # snip license = models.ForeignKey(License

Re: how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-18 Thread Andre Meyer
hi Rajesh so, implemented it as you told and it works very well. thanks for your patience and all the explanations. cheers André On Thu, Jul 17, 2008 at 7:22 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > > > > > still, it's not exactly clear to me why the admin does not work the > same >

Re: how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-17 Thread Rajesh Dhawan
> > > still, it's not exactly clear to me why the admin does not work the same > > as > > > other templates. > > > The Admin is not a template. So, I don't know what you mean by that. > > admin is not using templates? well, i did not check the implementation. Sorry, if I wasn't clear. The admin

Re: how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-17 Thread Andre Meyer
hi Rajesh On Thu, Jul 17, 2008 at 6:55 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > Hi, > > > still, it's not exactly clear to me why the admin does not work the same > as > > other templates. > > The Admin is not a template. So, I don't know what you mean by that. admin is not using

Re: how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-17 Thread Rajesh Dhawan
Hi, > still, it's not exactly clear to me why the admin does not work the same as > other templates. The Admin is not a template. So, I don't know what you mean by that. > > in my own template, it is no problem to refer to comments of a post using, > e.g. > > {% for comment in

Re: how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-17 Thread Andre Meyer
'comments' > (specified > > using related_name). > > > > how can the comments be displayed in the list view of the posts using > > newforms-admin? i would like to indicate whether there are comments and > how > > many, if any. > > Create a method

Re: how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-17 Thread Rajesh Dhawan
del. of course, a post can have > multiple comments, so the Post model gets an attribute 'comments' (specified > using related_name). > > how can the comments be displayed in the list view of the posts using > newforms-admin? i would like to indicate whether there are comments and how

how to access foreignkey field (related_name) in newforms-admin list view?

2008-07-17 Thread Andre Meyer
' (specified using related_name). how can the comments be displayed in the list view of the posts using newforms-admin? i would like to indicate whether there are comments and how many, if any. but when adding the 'comments' attribute to the list_display of PostOptions, syncdb throws an exception

post-save hook in newforms-admin

2008-07-16 Thread Wanrong Lin
Hi, I just switched to the newforms-admin branch. After some tweaking, things worked fine. But the real reason I switched is because I want to use the post-save hook in the new admin application. To be more specific, I want to perform some processing on a database entry after it is added

Dynamic upload_to for ImageField in newforms admin?

2008-07-16 Thread Brandon Taylor
Hi everyone, I'm following this tutorial for specifying a dynamic "upload_to" attribute: http://scottbarnham.com/blog/2007/07/31/uploading-images-to-a-dynamic-path-with-django/ But, it doesn't seem to want to work with Django admin. Does anyone have any experience tweeking this custom class to

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

2008-07-16 Thread Jashugan
On Jul 16, 6:19 am, Dan <[EMAIL PROTECTED]> wrote: > I'm starting the project in two weeks, hopefully, it will be merge then. Don't worry about it being merged with trunk. From what I understand changes from trunk are merged into newforms-admin branch on a wee

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

2008-07-16 Thread Dan
I'm starting the project in two weeks, hopefully, it will be merge then. I cross my fingers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

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

2008-07-16 Thread Jeff FW
According to: http://code.djangoproject.com/wiki/VersionOneRoadmap#must-have-features newforms-admin is a high priority. If you haven't already, take a look at: http://code.djangoproject.com/wiki/NewformsAdminBranch http://code.djangoproject.com/wiki/NewformsHOWTO They're both *really* helpful

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

2008-07-15 Thread Jon Brisbin
I assumed that trunk would be moving in the newforms-admin direction, so I've switched already. I would rather do it now than have to backport stuff later... Thanks! Jon Brisibn http://jbrisbin.com On Jul 15, 2008, at 3:50 PM, Dan wrote: > Should I start with the nfa branch or with tr

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

2008-07-15 Thread Dan
Should I start with the nfa branch or with trunk and update the code when it is merged? Is there risks of breakage in nfa? Other issues? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

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

2008-07-15 Thread Rajesh Dhawan
On Jul 15, 3:30 pm, Jason <[EMAIL PROTECTED]> wrote: > ...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? Yes. > Or > is there legacy support built in? It isn't. But the following snippet

  1   2   3   4   >