class Room(models.Model):
...
is_private = models.BooleanField(default=False)
In views.py
def chat_room(request):
if room.is_private:
return redirect ("/")
else:
...
On Mon, Nov 21, 2022, 04:03 Chukwudi Onwusa wrote:
> Please can you help me with a sample.
> Please.
Please can you help me with a sample.
Please.
On Sun, Nov 20, 2022, 15:53 Lakshyaraj Dash
wrote:
> Provide is_private to the rooms model of your app.
> If you make the default as true, then the room is private by default and
> vice versa
>
> On Sun, Nov 20, 2022, 20:21 Chukwudi Onwusa wrote:
>
Hello Guys,
you find my question in attachment because tabs in tables are not shown
when i send it in gmail.
Please help me on my question who make i a complex query.
Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsub
Provide is_private to the rooms model of your app.
If you make the default as true, then the room is private by default and
vice versa
On Sun, Nov 20, 2022, 20:21 Chukwudi Onwusa wrote:
> Greetings and good tidings!
> Please how do I create with django the above mail subject(private and
> public
Greetings and good tidings!
Please how do I create with django the above mail subject(private and
public chat room).
I need help and references to work on.
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group an
5 matches
Mail list logo