I've moved the forms definition into a separated forms.py file (as
suggested by a member of the italian group) and it seems to work.
I'll do some tests in the next days then post the correct version.
Il giorno venerdì 4 aprile 2014 12:36:17 UTC+2, Alessandro Caruso ha
scritto:
>
> Hi Liam,
> fi
Hi Liam,
first let me thank you for your time.
The relationship in Videoconference is written using the explicit string
form because at first I thought it could be a circular import problem, but
it could be written as User without affecting the problem positively.
I'll try to init the form clas
Hi Alex
My first thought is that this has something to do with the M2M field
stated in Class Videoconference. I'm not 100% sure though, I've only
recently started using this type of relationship and I find them rather
confusing.
I didn't understand why ''' models.ManyToManyField('auth.User'.
Thanks Liam
Il giorno giovedì 3 aprile 2014 19:05:28 UTC+2, Liam Thompson ha scritto:
>
> Hi Alex
>
> Let me have another look through your code and I'll try to come up with
> something useful.
>
> Liam
>
>
>
>
> On 03/04/2014 18:20, Alessandro Caruso wrote:
> > I got the traceback (thanks to
Hi Alex
Let me have another look through your code and I'll try to come up with
something useful.
Liam
On 03/04/2014 18:20, Alessandro Caruso wrote:
I got the traceback (thanks to a middleware which collects it and a send
it back to the ajax request even if DEBUG=False)
Environment:
Re
I got the traceback (thanks to a middleware which collects it and a send it
back to the ajax request even if DEBUG=False)
Environment:
Request Method: POST
Request URL: http://server:8080/assets/edit/videoconference/30
Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
('djang
Hi Alex
You might try that command, it's quick through the shell.
I suppose there are many ways to do forms, but I've populated my
modelforms through an __init__ to make sure its loaded fresh for every
form requested, not just on the loading of the server. So object versus
class if that makes
Hi Liam,
No I didn't try, but when the form is loaded empty (to create a new record)
I can see the Multiple Select List widget with all the users (order by
username) and I can even save one or more of them as viewers of the asset.
Do you think I should try it anyway? I mean should I expect some
Hi Alex
Your code is way more advanced that my skill level. Was wondering if you
had tried to run that query
viewers = ModelMultipleChoiceField(queryset = User.objects.all().order_by(
'username'))
from the shell ?
Liam
On Wednesday, 2 April 2014 15:12:42 UTC+2, Alessandro Caruso wrote:
>
>
Hi all.
the code:
models.py https://gist.github.com/karuso/9766764
views.py (edit function) https://gist.github.com/karuso/9766806
the problem:
When editing a Videoconference record through the VideoconferenceForm,
Django returns an error: "Cannot resolve keyword 'videoconference' into
field.
10 matches
Mail list logo