How to test a WebsocketConsumer that has async_to_sync code in it

2018-06-06 Thread 'Artemis' via Django users
I cannot test my *WebsocketConsumer* ( which includes many *async_to_sync*) references using the *WebsocketCommunicator*. My problem is identical to this closed issue: https://github.com/django/channels/issues/944 Can someone give me some hints as to how to proceed without removing the *async_t

Can model subclass change field options?

2011-10-02 Thread Artemis
Hi, I have an model which contains a CharField. Now I want to have different subclasses of this model each one with different *choices* for the CharFiel. How can I implement this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Question about "Writing your first Django app, part 1"

2008-08-31 Thread Artemis Fowl
>>> c.poll Traceback (most recent call last): File "", line 1, in AttributeError: 'QuerySet' object has no attribute 'poll' Anybody help! Many Thanks, Artemis. --~--~-~--~~~---~--~~ You received this message because you are

Question related to "Writing your first Django app, part 1" tutorial.

2008-08-31 Thread Artemis Fowl
| | AttributeError: 'QuerySet' object has no attribute 'poll' | |-----| Many Thanks, Artemis. --~--~-~--~~~---~--~~ You received this message because you are subscrib