Hi guys!

I think I found a error polymorphism in django 1.7, field slug exist in
_meta.fields and run filter return error "FieldError: Cannot resolve
keyword 'slug' into field. Choices".

Example: https://gist.github.com/avelino/793bdaf9f9732314912a


Slugged (abstract):
https://github.com/opps/opps/blob/8e58a60c3cfea75b5cc4455d247a75b26f995b58/opps/core/models/core.py#L80

Article (abstract):
https://github.com/opps/opps/blob/8e58a60c3cfea75b5cc4455d247a75b26f995b58/opps/containers/abstracts/articles.py#L12

Post:
https://github.com/opps/opps/blob/8e58a60c3cfea75b5cc4455d247a75b26f995b58/opps/containers/types/posts.py#L8

Container:
https://github.com/opps/opps/blob/8e58a60c3cfea75b5cc4455d247a75b26f995b58/opps/containers/models/core.py#L29


class Container(Publishable, Channeling):
class Article(Container, Slugged, Tagged):
class Post(Article):

In Post not exist slug (on filtrer) and _meta.fields exist!


Cheers,
Thiago Avelino
@avelino0 <http://twitter.com/avelino0> - avelino.xxx

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAHWh-o%2BsqPgXWy32sQTJKu9F1Xiux4Dic%3DhwVqrcgmzQx%3D2onA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to