[英]Slice and attribute in django template
I am tried to create a slice in django template and get an attribute. 我试图在django模板中创建一个切片并获取一个属性。 How can i do in django template something like this:
我怎么能在django模板中做这样的事情:
python code: python代码:
somelist[1].name
please help 请帮忙
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.