:
>
> > 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
>
> 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):
>
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
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
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
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
> 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?
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
> 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
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
> 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
"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
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
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
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
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
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
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
>
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
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:
>
>
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
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
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
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
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
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
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
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
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):
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,
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.
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
> 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
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
> 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
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
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
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
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.
>
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
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
> 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
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
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
-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
-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
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
47 matches
Mail list logo