Yes, I tried removing the all() but that does not change anything.
On Sat, Jun 6, 2015 at 3:57 PM, James Schneider
wrote:
> Have you tried taking out the .all()? You don't need that if you're using
> filter(). I don't think that will help though.
>
> -James
> On Jun 6, 2015 12:42 PM, "Michael"
Thanks Russell, that works well.
On Thu, Nov 13, 2014 at 11:30 PM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:
> Hi Michael,
>
> The best bet would be to write a custom widget, and override the render()
> method. render() takes the name of the widget, the value to render, and a
> dicti
Thanks for your response James.
I am not well familiar with the metaclasses, I do not really see how to do
it.
What do you think of adding the fields in the init this way?
extra_fields = {'extra1': forms.CharField(required=False), 'extra2':
forms.CharField(required=False)}
class ModelFormA(forms
Thank you Russell for your response. That confirms what I was thinking.
I am going to use a queue.
On Thu, Oct 23, 2014 at 6:10 PM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:
> HI Michael,
>
> There's a problem here - Web apps don't have a lifecycle like this. The
> only part of the ap
Maybe using a Model like Kurtis mentioned will be better (and easier) than
making a custom field... ?
Le jeudi 23 août 2012 18:49:55 UTC+2, Michael Palumbo a écrit :
>
> I did not know the pickle module. This is interesting. Thanks.
> However, after playing with it, I am not sur
-
I overrided the render method of the widget but the errors comes from
self.value() of the BoundField.
How can I fix that? override that?
Any other idea?
Thanks.
Le jeudi 23 août 2012 03:27:09 UTC+2, Melvyn Sopacua a écrit :
>
> On 23-8-2012 0:37, Michael Pal
"""
>>
>> def set_reference(self, input):
>> self._reference = input
>>
>> foo = property(get_reference, set_reference)
>>
>> Anyways, just a guess at one of many ways to possibly accomplish this
>> task.
>>
Hi,
Do you know a custom field for a callable python object like a Class or a
function ?
It could store it as a string in the DB: "module1.module2.class" or
"module1.module2.function"
With that string, it could load it as a real python object when you get it
from the DB.
For example, you c
Hi,
I have initial fixtures (initial_data.json) for several apps.
The model A of App1 references the model B of App2.
I use natural keys to reference it.
So when I sync the DB, Django tries to make a query on modelB.
However, it appears that the fixtures of my App1 are installed before the
fixt
Hi,
I have been recently concerned about getting a portable Django development
environment as well. I wanted it to work on any computers without
installing anything.
I could get it to work, I can now carry my environment and projects on a
USB stick. :)
I assume it is a bit late for your case no
Hi Matt,
Correct, using either null=True or blank=True on the field works.
However, I don't get it since I didn't click on "save", I just wanted to
display the add page containing it. Why does it attempt to validate the
field at this time and not wait for the form to be sent ? Maybe this is how
eld()
-
class MappingAdmin(admin.ModelAdmin):
fields = ['data_map4']
list_display = ('data_map4',)
Thanks.
Le mardi 10 juillet 2012 22:08:50 UTC+2, Reinout van Rees a écrit :
>
> On 09-07-12 20:52, Michael Palumbo wrote:
> > Hi,
> >
> > I hav
Hi,
I have found several implementations of a Django JSON Field.
Have you ever tried one ? Which one do you recommend ?
Thanks.
https://github.com/bradjasper/django-jsonfield
https://github.com/derek-schaefer/django-json-field
https://bitbucket.org/schinckel/django-jsonfield/overview
https
Hi,
I have found lots of posts on how organizing a kinda big project with
Django =<1.3 but I was wondering what could be the best option with Django
1.4 since the default layout has changed.
I have found just this post on the internet talking about structuring a
django 1.4 project:
http://www
14 matches
Mail list logo