Re: drop-in replacement for admin module foreign key relation UI

2016-07-14 Thread muin
: > > > Hi all, > > > > I have tons of objects referenced by ForeignKey in Django Admin module > UI, > > and I would like to replace it with something more optimal, e.g. > auto-fill > > input box or something. > > > > My mode

Re: drop-in replacement for admin module foreign key relation UI

2015-02-18 Thread Derek
> > Hi all, > > I have tons of objects referenced by ForeignKey in Django Admin module UI, > and I would like to replace it with something more optimal, e.g. auto-fill > input box or something. > > My model looks something like this: > > class SoapCall(models.Model): >

Re: drop-in replacement for admin module foreign key relation UI

2015-02-17 Thread Jani Kajala
That's perfect, thanks On Tuesday, February 17, 2015 at 1:20:22 AM UTC-6, Jani Tiainen wrote: > > On Mon, 16 Feb 2015 15:03:05 -0800 (PST) > Jani Kajala <kaj...@gmail.com > wrote: > > > Hi all, > > > > I have tons of objects referenced by ForeignKey in D

Re: drop-in replacement for admin module foreign key relation UI

2015-02-16 Thread Jani Tiainen
On Mon, 16 Feb 2015 15:03:05 -0800 (PST) Jani Kajala <kaj...@gmail.com> wrote: > Hi all, > > I have tons of objects referenced by ForeignKey in Django Admin module UI, > and I would like to replace it with something more optimal, e.g. auto-fill > input box or something

drop-in replacement for admin module foreign key relation UI

2015-02-16 Thread Jani Kajala
Hi all, I have tons of objects referenced by ForeignKey in Django Admin module UI, and I would like to replace it with something more optimal, e.g. auto-fill input box or something. My model looks something like this: class SoapCall(models.Model): customer = models.ForeignKey(Customer

Aw: Re: Beginner: ManyToManyFields error creating the model / adding values by the Admin Module or the Shell

2014-11-06 Thread lnzy35en
ederstrand.dk> An: "Django Users" <django-users@googlegroups.com> Betreff: Re: Beginner: ManyToManyFields error creating the model / adding values by the Admin Module or the Shell > Den 04/11/2014 kl. 23.07 skrev lnzy3...@gmx.de: > > > Hi Erik, > > the id

Re: Beginner: ManyToManyFields error creating the model / adding values by the Admin Module or the Shell

2014-11-05 Thread Erik Cederstrand
> Den 04/11/2014 kl. 23.07 skrev lnzy3...@gmx.de: > > > Hi Erik, > > the idea was, that one Author can write in more than one language (eg. en and > de), or no one at all. This was the background to use the ManyToManyField. Yes, but then you simply create multiple Interest objects, right?

Aw: Re: Beginner: ManyToManyFields error creating the model / adding values by the Admin Module or the Shell

2014-11-04 Thread lnzy35en
22:42 Uhr Von: "Erik Cederstrand" <erik+li...@cederstrand.dk> An: "Django Users" <django-users@googlegroups.com> Betreff: Re: Beginner: ManyToManyFields error creating the model / adding values by the Admin Module or the Shell > Den 04/11/2014 kl. 19.16 skrev ln

Re: Beginner: ManyToManyFields error creating the model / adding values by the Admin Module or the Shell

2014-11-04 Thread Erik Cederstrand
> Den 04/11/2014 kl. 19.16 skrev lnzy3...@gmx.de: > > Hi, > Sorry, via the admin interface (Web-GUI) I have inserted the following values: > My Actions > en > Language > > mike.test // t...@test.de > User > > Dan Brown > Author > > If I now try to add an Interest (“Dan Brown” and “en”) via the

Beginner: ManyToManyFields error creating the model / adding values by the Admin Module or the Shell

2014-11-04 Thread lnzy35en
Hi, Sorry, via the admin interface (Web-GUI) I have inserted the following values: My Actions en Language mike.test // t...@test.de User   Dan Brown Author   If I now try to add an Interest (“Dan Brown” and “en”) via the GUI selection I get: TypeError at

Re: Beginner: ManyToManyFields error creating the model / adding values by the Admin Module or the Shell

2014-11-04 Thread Erik Cederstrand
> Den 04/11/2014 kl. 10.57 skrev lnzy3...@gmx.de: > [...] > Now I try to add some User with an Interest using the Admin module or the > Shell to find out how to do that (real syntax and model) by the “site”. But > unfortunately both the shell and furthermore the graphical admin mo

Beginner: ManyToManyFields error creating the model / adding values by the Admin Module or the Shell

2014-11-04 Thread lnzy35en
"Book language", blank=True)     def __str__(self):     return ' '.join([     self.author,     self.language])   Now I try to add some User with an Interest using the Admin module or the Shell to find out how to do that (real syntax and model) by the “site”. Bu

Re: Admin module - modify SQL Query used for Edit and Save Models

2013-05-03 Thread Shawn Milochik
On Fri, May 3, 2013 at 10:22 AM, Marc wrote: Thanks. I understood and that doesn't work for my project as python/django > can't handle the returned bytes I need to use. > my project requires that the values are stored using the result of > aes_encrypt from MySQL because other

Re: Admin module - modify SQL Query used for Edit and Save Models

2013-05-03 Thread Marc
Thanks. I understood and that doesn't work for my project as python/django can't handle the returned bytes I need to use. my project requires that the values are stored using the result of aes_encrypt from MySQL because other systems not made in python expect that and cannot be changed at this

Re: Admin module - modify SQL Query used for Edit and Save Models

2013-05-03 Thread Shawn Milochik
On Fri, May 3, 2013 at 8:37 AM, Marc wrote: So Tom: i can't use those methods Shawn pointed out? What I was hoping I > can do is override the code that builds the SQL query. > Further looking I think thats correct; as I did get a module working I > found and played with which

Re: Admin module - modify SQL Query used for Edit and Save Models

2013-05-03 Thread Marc
I really think django should add an easy way to override what django uses to build the query for each Field and make it part of the Field settings, for example: models.CharField(override_sql_newupdate='AES_ENCRYPT(fieldname,key)', override_sql_select='AES_DECRYPT(fieldname,key)',... would be very

Re: Admin module - modify SQL Query used for Edit and Save Models

2013-05-03 Thread Marc
So Tom: i can't use those methods Shawn pointed out? What I was hoping I can do is override the code that builds the SQL query. Further looking I think thats correct; as I did get a module working I found and played with which uses those methods and they don't seem to manipulate the query that is

Re: Admin module - modify SQL Query used for Edit and Save Models

2013-05-03 Thread Tom Evans
On Fri, May 3, 2013 at 12:46 PM, Shawn Milochik wrote: > https://docs.djangoproject.com/en/1.5/howto/custom-model-fields/#converting-database-values-to-python-objects > https://docs.djangoproject.com/en/1.5/howto/custom-model-fields/#converting-python-objects-to-query-values >

Re: Admin module - modify SQL Query used for Edit and Save Models

2013-05-03 Thread Shawn Milochik
On Fri, May 3, 2013 at 8:06 AM, Marc wrote: Thanks, i'll play with that and see what I can come up with. > Docs are good, but sometimes really hard to read/find what you need :) > > > > Oh come on, you mean "get_prep_value" and "to_python" weren't obvious? ;o) -- You received

Re: Admin module - modify SQL Query used for Edit and Save Models

2013-05-03 Thread Marc
Thanks, i'll play with that and see what I can come up with. Docs are good, but sometimes really hard to read/find what you need :) On Fri, May 3, 2013 at 7:46 AM, Shawn Milochik wrote: > >

Re: Admin module - modify SQL Query used for Edit and Save Models

2013-05-03 Thread Shawn Milochik
https://docs.djangoproject.com/en/1.5/howto/custom-model-fields/#converting-database-values-to-python-objects https://docs.djangoproject.com/en/1.5/howto/custom-model-fields/#converting-python-objects-to-query-values Have a look at these two methods of a custom field. You can pretty easily make

Re: Admin module - modify SQL Query used for Edit and Save Models

2013-05-03 Thread Marc R
Anyone? I would really like to know who I can modify the query as its being built so that for a specific field I can set the "field" to AES_DECRTYP(fieldname,key) on a select and AES_ENCRYPT(fieldname,key) on insert/update On Sunday, 28 April 2013 20:21:48 UTC-4, Marc R wrote: > > I have a

Admin module - modify SQL Query used for Edit and Save Models

2013-04-28 Thread Marc R
I have a model where I have used AES_ENCRYPT(value, key) to save data in a MySQL database. It is set as a varbinary field. So the issue is; when trying to edit the model in Django, it does not render a widget for the field. I've tried the aesfield from github but that does some funky thing

Re: Admin Module

2012-02-25 Thread Scott Macri
Disregard this post. The issue was garbage urls I forgot to delete from the url.py file. On Sun, Feb 26, 2012 at 12:30 AM, scott macri <hacktori...@gmail.com> wrote: > I'm having an issue getting my admin module to work.  I am getting the > following error.  Any thoug

Re: Admin Module

2012-02-25 Thread Shawn Milochik
Check your code to find out what "get_notes_health" is and you'll be 99% of the way to your answer. It's something to do with that, and that's something in your code, not Django itself. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Admin Module

2012-02-25 Thread scott macri
I'm having an issue getting my admin module to work. I am getting the following error. Any thoughts? Thanks. TemplateSyntaxError at /hcp/admin/ Caught ViewDoesNotExist while rendering: Tried get_notes_health in module hcp.views. Error was: 'module' object has no attribute 'get_notes_health

Re: How to intercept password change in admin module ?

2011-12-01 Thread Martin J. Laubach
How about just listening to pre_save or post_save signals on the User model? mjl -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/C65AzRxHDNwJ. To

Re: How to intercept password change in admin module ?

2011-12-01 Thread Marc
Thanks for your suggestion. Yes it is. Save_model is called when I modify the User but not when I change the password using the dedicated form. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: How to intercept password change in admin module ?

2011-12-01 Thread Reinout van Rees
On 01-12-11 09:12, Marc wrote: Hello, I reformulate my previous question having not no answer. I would like to get control on the password change form of the admin site (let us say record some trace in another table). I put the following code in the admin.py: class MyUserAdmin(UserAdmin):

How to intercept password change in admin module ?

2011-12-01 Thread Marc
Hello, I reformulate my previous question having not no answer. I would like to get control on the password change form of the admin site (let us say record some trace in another table). I put the following code in the admin.py: class MyUserAdmin(UserAdmin): def save_model(self, request,

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-02-01 Thread John Abraham
I get the same error in the admin interface after manually removing a field from one of my classes. I removed it in models.py and in the database. The class in question works fine, but for some reason a dependent class (one that refers to the other with a foreign key) has it's admin form broken.

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Karen Tracey
On Sun, Jan 31, 2010 at 2:39 PM, Martin J. Laubach > wrote: > > 1.(r'^admin/', include(admin.site.urls)), > > That looks like it. > No, that is the correct way to specify admin urls for 1.1 and up. No quotes around admin.site.urls. One

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Martin J. Laubach
> 1.    (r'^admin/', include(admin.site.urls)), That looks like it. > I tried putting include('admin.site.urls')) but it could not find > 'admin.site.urls' Do you have 'django.contrib.admin' in INSTALLED_APPS? mjl -- You received this message because you are subscribed to the

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread zweb
In my urls.py I see only two possible places where I do not have quotes, 1.(r'^admin/', include(admin.site.urls)), I tried putting include('admin.site.urls')) but it could not find 'admin.site.urls' 2. (r'^register/$', register,{'opensource':True}), True is not in quotes. But it is

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Martin J. Laubach
> Caught an exception while rendering: 'module' object has no attribute > 'rindex' Sounds you are using foo.bar instead of 'foo.bar' somewhere (ie. module instead of string). mjl -- You received this message because you are subscribed to the Google Groups "Django users" group. To

TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread zweb
after login to admin, now I get this error, any clues on what to look for? using django 1.1.1 Ashish TemplateSyntaxError at /admin/ Caught an exception while rendering: 'module' object has no attribute 'rindex' Original Traceback (most recent call last): File

Re: Django Admin module without login feature

2009-02-03 Thread Ales Zoulek
You should be more verbose about "some of the features of django administration". Maybe you don't need django.contrib.admin,but just ModelForm, or other parts outside of admin it self. Regards, Ales On Wed, Jan 28, 2009 at 2:38 PM, Saurav wrote: > > Hi All, > > I wanted to

Django Admin module without login feature

2009-01-28 Thread Saurav
Hi All, I wanted to use the some of the features of django administration modules without the login feature. In my project there is no concepts of users, Can anybody tell me if its possible and if its possible, how to do it ? Thanks in advance -Saurav

Re: Sort drop-down list in Admin module

2008-11-12 Thread Daniel Roseman
On Nov 12, 2:30 pm, Bobo <[EMAIL PROTECTED]> wrote: > Hi everyone, > > In my admin module I've some drop-down lists that extract data from my > database but the thing is that it sort the list from the Database ID > and not alphabetically, starting with A and continuing. >

Sort drop-down list in Admin module

2008-11-12 Thread Bobo
Hi everyone, In my admin module I've some drop-down lists that extract data from my database but the thing is that it sort the list from the Database ID and not alphabetically, starting with A and continuing. I've search the Django API and Admin docs for a solutions but it seem that I only find

Re: Admin module, user account editing and group assignment info

2007-07-05 Thread Angela Sutanto
On 7/4/07, Chris Brand <[EMAIL PROTECTED]> wrote: > If you go to edit that same user in the Admin, the group should be selected > in that same multiselect box. > > It's as simple as that. Aha - it did not occur me. I was looking for some gadget proof against an accidental (re)selection. This

RE: Admin module, user account editing and group assignment info

2007-07-04 Thread Chris Brand
> If I open page to edit user's account, at the bottom is multiselect > box containing all existing groups. > > If I select one(s) and save user profile, in DB table > auth_user_grooups I see a correct links between auth_user and > auth_group table. > > But I cannot find the same information in

Admin module, editing user account + user profile in the same page

2007-07-04 Thread Angela Sutanto
Hi once more question concerning Admin module customization: What is a recommended way of customization to achieve a single page editor to edit choosen fields from standard user accouny and fields from my user profile? Using parameter edit_iniline in OneToOne fields includes fields of my

Admin module, user account editing and group assignment info

2007-07-04 Thread Angela Sutanto
Hi, I'm learning Django and trying to use/customize Admin module but I cannot find information about group(s) a user is assigned to. If I open page to edit user's account, at the bottom is multiselect box containing all existing groups. If I select one(s) and save user profile, in DB table

error in django admin module

2007-03-12 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I found an error in django. I use python 2.5 the error occurs both in the actual official released version and in the svn version. as soon as I enter the adminpage I get following error, if I have a sessioncookie. without sessioncookie no

Problems with Admin module, using apache2 and mod_python

2007-03-04 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello django-users, I have a problem, as you might see due to the title ;) I can't login to the adminpanel. I only get an error: TypeError at /test/admin/ a2b_base64() argument 1 must be string or read-only character buffer, not array.array Request

Re: newbie question about admin module

2006-03-04 Thread Max Battcher
mahakala wrote: > Hi, everybody > > I just created a simple data entry application in django, and I want to > use contrib admin as the data input interface and the admin user > management, I want the system log which staff user input the every > single line data. I know there is an action