Details are available on the Django project weblog:
https://www.djangoproject.com/weblog/2021/feb/19/security-releases/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an em
Details are available on the Django weblog:
https://www.djangoproject.com/weblog/2021/feb/19/django-32-beta-1-released/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an e
I have to create a unique code for each space saved in dbAb db me save
krne k lie, wo multiple part me save ho rha hai, multiple models bhi hai
uske.1st model se mujhe space category ka name uthana hai
2nd se city code
Category alag alg ho skti hai
To code genrate hoga LM-categorycode-citycode-0
Hi Kritika
Ye chanel mein firangi log bhi hai, unko hinglish kaisa samjhenga? 😂
Teko field pe unique constraint lagana padenga
Teko no wapas 1 se start karneke liye query maarana padenga
last_no = Model.objects.filter(categorycode="blah",
citycode="blah-blah").count()
unique_code ="LM" + categ
I need to fetch it from different models. If you want I can share models
snapshot
On Fri, 19 Feb 2021 at 15:52, Chetan Ganji wrote:
> Hi Kritika
>
> Ye chanel mein firangi log bhi hai, unko hinglish kaisa samjhenga? 😂
>
> Teko field pe unique constraint lagana padenga
>
> Teko no wapas 1 se star
Chetan
If any row is deleted from the table, then your logic will fail to return
the unique code
On Fri, 19 Feb 2021, 15:52 Chetan Ganji, wrote:
> Hi Kritika
>
> Ye chanel mein firangi log bhi hai, unko hinglish kaisa samjhenga? 😂
>
> Teko field pe unique constraint lagana padenga
>
> Teko no wa
No row will be deleted, also, the code created once will never be assigned
to any other space
On Fri, 19 Feb 2021 at 15:59, shubham vashisht wrote:
> Chetan
> If any row is deleted from the table, then your logic will fail to return
> the unique code
>
> On Fri, 19 Feb 2021, 15:52 Chetan Ganji,
Yes kritika show all the models.
How shubham?
If an entry is deleted, unique code will also be deleted. Next time it gets
generated, it might be assigned to different entry, but it still be unique.
As kritika clarified already, so it wont be a problem.
On Fri, Feb 19, 2021, 3:58 PM shubham vashi
class SpaceCategory(BaseModel):
__tablename__ = "space_categories"
name = db.Column(db.String(255))
description = db.Column(db.Text)
image_url = db.Column(db.Text)
code = db.Column(db.String(100))
space_sub_category = db.relationship('SpaceSubCategory', backref
=db.backref(
Show the model where you save Space_code
On Fri, Feb 19, 2021, 4:19 PM Kritika Paul wrote:
> class SpaceCategory(BaseModel):
> __tablename__ = "space_categories"
>
> name = db.Column(db.String(255))
> description = db.Column(db.Text)
> image_url = db.Column(db.Text)
> code =
class Spaces(BaseModel):
__tablename__ = "spaces"
name = db.Column(db.String(255))
user_id = db.Column(db.Integer)
status = db.Column(
db.String(100), default=SpaceStatusType.PENDING.value)
space_category_id = db.Column(
db.Integer, db.ForeignKey("space_categorie
If there are 4 rows which have categorycode="blah" and
citycode="blah-blah", then the space code will be something like this,
LMblahblah-blah1, LMblahblah-blah2, LMblahblah-blah3, LMblahblah-blah4.
But if you delete row with spacecode different from LMblahblah-blah4, then
your code will generate sp
I am interested
On Fri, Feb 19, 2021 at 10:48 AM Desh Deepak
wrote:
> Interested
>
> On Fri, 19 Feb 2021, 10:32 am neha bhurke, wrote:
>
>> Hello everyone,
>>
>> We are looking for a python Django web app developer should have the
>> total knowledge about python Django and should be experienced
Dear madam,
I am Amit Prasad Gupta and currently I am working
as a python developer. I have 3 yr experience in python. PFA
Thanks & Regards
Amit Prasad Gupta
On Fri, Feb 19, 2021, 10:31 AM neha bhurke wrote:
> Hello everyone,
>
> We are looking for a python Django web a
The look and feel with typical example flows possible for html were not
looking similar to websites like stackoverflow.com so i had a doubt if they
all look very image free. I am a starter with Django.
Thanks & Regards,
Sridhar.V
+91-9591729335
On Thu, Feb 18, 2021 at 8:07 PM Andréas Kühne
wrot
Hi,
I gave only a few months with Django and a few years with python. But I am
good at working with a flow by getting help from the documentation.
Here's a link to one of my Django work in progress,
https://github.com/8lurry/heartbeat .
I am fairly good with Django. You won't regret giving me a c
help me for learning python development i am from pakistan
On Fri, Feb 19, 2021 at 7:32 PM Amit prasad Gupta
wrote:
> Dear madam,
> I am Amit Prasad Gupta and currently I am working
> as a python developer. I have 3 yr experience in python. PFA
>
> Thanks & Regards
> Ami
Your office is in Borivali Mumbai any one from mumbai
On Fri, 19 Feb 2021, 8:03 pm Sharif Mehedi,
wrote:
> Hi,
> I gave only a few months with Django and a few years with python. But I am
> good at working with a flow by getting help from the documentation.
> Here's a link to one of my Djan
Hello everyone, I got a problem
```
referenced_fields = set(chain.from_iterable(
(rf.attname for rf in rel.field.foreign_related_fields)
for rel in get_candidate_relations_to_delete(related_model._meta)
))
sub_objs = sub_objs.only(*tuple(referenced_fields))
```
It will never work, when delete a f
Hello,
i need a new model with parent child nested relations. The final aim was
this:
https://www.freakyjolly.com/wp-content/uploads/2020/10/Pasted-into-Angular-109-Tree-View-List-with-Expand-Collapse-and-Checkboxes-using-ngx-treeview.png
i want a mulltiselect field with subcategories. Also in
20 matches
Mail list logo