Re: [Django] #30273: ModelAdmin for proxy model with InlineModelAdmin for superclass reference results in admin.E202

2019-04-13 Thread Django
#30273: ModelAdmin for proxy model with InlineModelAdmin for superclass 
reference
results in admin.E202
-+-
 Reporter:  jwindhager   |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  contrib.admin|  Version:  2.1
 Severity:  Normal   |   Resolution:
 Keywords:  proxy,   |  worksforme
  InlineModelAdmin, E202 | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Amir Hadi):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 This works for me. I attached a demo project, please have a look. Maybe I
 did misunderstood you somehow. I tested with Django 2.1.7 and master.

-- 
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.c24a820a5a698e4300dbfa9465021a00%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30273: ModelAdmin for proxy model with InlineModelAdmin for superclass reference results in admin.E202

2019-04-13 Thread Django
#30273: ModelAdmin for proxy model with InlineModelAdmin for superclass 
reference
results in admin.E202
-+-
 Reporter:  jwindhager   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.admin|  Version:  2.1
 Severity:  Normal   |   Resolution:
 Keywords:  proxy,   | Triage Stage:  Accepted
  InlineModelAdmin, E202 |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Amir Hadi):

 * Attachment "test30273.zip" added.

 DemoProject which actually works

-- 
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.865730981284a905172b397743826a42%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30273: ModelAdmin for proxy model with InlineModelAdmin for superclass reference results in admin.E202

2019-03-20 Thread Django
#30273: ModelAdmin for proxy model with InlineModelAdmin for superclass 
reference
results in admin.E202
-+-
 Reporter:  jwindhager   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.admin|  Version:  2.1
 Severity:  Normal   |   Resolution:
 Keywords:  proxy,   | Triage Stage:  Accepted
  InlineModelAdmin, E202 |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham):

 * stage:  Unreviewed => Accepted


-- 
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.379ce477d185c11fa50af4600804de25%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #30273: ModelAdmin for proxy model with InlineModelAdmin for superclass reference results in admin.E202

2019-03-20 Thread Django
#30273: ModelAdmin for proxy model with InlineModelAdmin for superclass 
reference
results in admin.E202
-+-
   Reporter: |  Owner:  nobody
  jwindhager |
   Type:  Bug| Status:  new
  Component: |Version:  2.1
  contrib.admin  |   Keywords:  proxy,
   Severity:  Normal |  InlineModelAdmin, E202
   Triage Stage: |  Has patch:  0
  Unreviewed |
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
  UI/UX:  0  |
-+-
 Assume the following Django models:

 {{{#!python

 class Reporter(models.Model):
 ...


 class Journalist(Reporter):
 ...

 class Meta:
 proxy = True


 class Article(models.Model):
 reporter = models.ForeignKey(Reporter)
 ...

 }}}

 Register model admins as follows (exemplary):
 {{{#!python

 class ArticleInline(admin.TabularInline):
 model = Article
 fk_name = 'reporter'
 ...


 @admin.register(Journalist)
 class JournalistAdmin(admin.ModelAdmin):
 inlines = [ArticleInline]
 ...

 }}}

 This will result in the following error:
 {{{
 : (admin.E202) fk_name 'reporter' is not a
 ForeignKey to 'Journalist'.
 }}}

-- 
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.4c86622dc16a5c45ebf674bf1fd92411%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.