is possible change value of attribute of class meta:
example have model like:-
class mymodel(models.model): class meta: ordering = ['-some_order']
for example want change value of display value using view. how access class meta
attributes can manupulate values?
you can't change them. they're processed metaclass when model first defined: they're not changeable. although can't imagine why you'd want to.
you can read them via mymodel._meta
, if want.
Comments
Post a Comment