Hi Elton,
>From a quick look this branch seems to handle attributes inherited from
possible `Meta` bases.
e.g.
class Foo(models.Model):
class Meta:
app_label = 'app'
class Bar(models.Model):
class Meta(Foo.Meta):
pass
assert 'app_label' not in Bar.Meta.__dict__
assert Bar.Meta.app_label == 'app'
Cheers,
Simon
Le vendredi 15 janvier 2016 10:36:45 UTC-5, Elton Pereira de Lima a écrit :
>
> What's up guys!
>
> I am studying the core of django and I came across a piece of code that
> confused me.
>
>
> https://github.com/django/django/blob/master/django/db/models/options.py#L192-L194
>
> If meta_attr is a copy of self.meta .__ dict__, then when will the marked
> section will run?
>
> Thanks!
>
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" 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 https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/192e9289-ea1d-43c5-b711-7b9111328878%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.