Re: [Django] #35301: Overriding a @property of an abstract model with a GenericRelation causes a models.E025 error.

2024-03-17 Thread Django
#35301: Overriding a @property of an abstract model with a GenericRelation 
causes a
models.E025 error.
-+-
 Reporter:  Sage Abdullah|Owner:  Adam
 |  Johnson
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  dev
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by GitHub ):

 * resolution:   => fixed
 * status:  assigned => closed

Comment:

 In [changeset:"7646b9023da7e1f6f3a871959db027b3ea36eebb" 7646b90]:
 {{{#!CommitTicketReference repository=""
 revision="7646b9023da7e1f6f3a871959db027b3ea36eebb"
 Fixed #35301 -- Fixed Options._property_names for overriden properties.

 Regression in faeb92ea13f0c1b2cc83f45b512f2c41cfb4f02d.
 }}}
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e4b943b59-f27b63b2-6579-4a68-97a5-e01f508050ec-00%40eu-central-1.amazonses.com.


Re: [Django] #35301: Overriding a @property of an abstract model with a GenericRelation causes a models.E025 error.

2024-03-16 Thread Django
#35301: Overriding a @property of an abstract model with a GenericRelation 
causes a
models.E025 error.
-+-
 Reporter:  Sage Abdullah|Owner:  Adam
 |  Johnson
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  dev
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Adam Johnson):

 * has_patch:  0 => 1
 * owner:  nobody => Adam Johnson
 * status:  new => assigned

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e47348572-da635dfd-6020-45d8-9422-8a92d334d6ea-00%40eu-central-1.amazonses.com.


Re: [Django] #35301: Overriding a @property of an abstract model with a GenericRelation causes a models.E025 error.

2024-03-14 Thread Django
#35301: Overriding a @property of an abstract model with a GenericRelation 
causes a
models.E025 error.
-+-
 Reporter:  Sage Abdullah|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  dev
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by Sage Abdullah):

 Thanks both! Here's a much more minimal reproduction that still somewhat
 makes sense.

 {{{
 from django.contrib.contenttypes.fields import GenericForeignKey,
 GenericRelation
 from django.contrib.contenttypes.models import ContentType
 from django.db import models


 class Generic(models.Model):
 content_type = models.ForeignKey(
 ContentType,
 related_name="+",
 on_delete=models.CASCADE,
 )
 object_id = models.CharField(max_length=255)
 content_object = GenericForeignKey()


 class Abstract(models.Model):
 @property
 def generics(self):
 return Generic.objects.filter(
 content_type=ContentType.objects.get_for_model(self),
 object_id=str(self.pk),
 )

 class Meta:
 abstract = True


 class Concrete(Abstract):
 generics = GenericRelation(Generic, related_query_name="concrete")
 }}}
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e3d447cde-2e0b9fcb-a17a-4e63-a19c-5e99dabbe0e0-00%40eu-central-1.amazonses.com.


Re: [Django] #35301: Overriding a @property of an abstract model with a GenericRelation causes a models.E025 error.

2024-03-14 Thread Django
#35301: Overriding a @property of an abstract model with a GenericRelation 
causes a
models.E025 error.
-+-
 Reporter:  Sage Abdullah|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  dev
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by Adam Johnson):

 Yeah thanks. I have an idea to fix this by keeping track of seen names
 whilst iterating. Will give it a try tonight.
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e3d05a974-e43ebdb5-0616-472f-a6b4-a5622f6e56e6-00%40eu-central-1.amazonses.com.


Re: [Django] #35301: Overriding a @property of an abstract model with a GenericRelation causes a models.E025 error.

2024-03-14 Thread Django
#35301: Overriding a @property of an abstract model with a GenericRelation 
causes a
models.E025 error.
-+-
 Reporter:  Sage Abdullah|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  dev
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Mariusz Felisiak):

 * cc: Adam Johnson (added)
 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted

Comment:

 Thanks for the detailed report and early testing!
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e3cb37fa2-f2716c0d-449d-4153-b552-d45c93b6e864-00%40eu-central-1.amazonses.com.


Re: [Django] #35301: Overriding a @property of an abstract model with a GenericRelation causes a models.E025 error. (was: Overriding a @property of an abstract class with a GenericRelation causes a mo

2024-03-14 Thread Django
#35301: Overriding a @property of an abstract model with a GenericRelation 
causes a
models.E025 error.
-+-
 Reporter:  Sage Abdullah|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  dev
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Sage Abdullah):

 * summary:
 Overriding a @property of an abstract class with a GenericRelation
 causes a models.E025 error.
 =>
 Overriding a @property of an abstract model with a GenericRelation
 causes a models.E025 error.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e3c93a92d-aa3a7ef7-de5a-43a8-bc47-229229e70c76-00%40eu-central-1.amazonses.com.