Jonathan

Results 143 comments of Jonathan

Hi, thanks for your reply. Yes I did try passing in an instance as `object` but I think I ran into problems because I was using a custom template tag...

OK, I've read your code and I don't 100% understand everything, but what I want is to effectively skip the check in https://github.com/idlesign/django-etc/blob/master/etc/templatetags/model_field.py#L94 Logically in my my main template I...

Good point. This is basically what I've been trying to do with with my experiments with tags and templates, but I haven't managed to make it work yet. Could you...

Great, thanks, this helps a lot. I'll have another go tonight when I get off work (sysadmin) :+1:

OK. This is what I've got now: Detail view template: ```html ... {% if object.manufacturer is not None %} {% titledescription from object.manufacturer %} {% endif %} ... ``` And...

Thanks for the explanation. Using your example I can correctly use the tag in the top-scope template like `{% mytag mymodel %}. But I can't get it to work when...

Basically I've got a large table with many rows, and each row is one field. So I don't want each cell title to have manual `` etc

I also tried ```py @register.tag def mytag4(parser, token): verbose_name = _get_model_field_attr('model_field_verbose_name', 'verbose_name', token) help_text = _get_model_field_attr('model_field_help_text', 'help_text', token) return "{}{}".format(verbose_name, help_text) ``` but it fails with ``` 'str' object has...

Hey, is there any progress on this issue? I see you're still deploying a hard-coded tag of `1.0.0` to Docker Hub https://hub.docker.com/r/akhilrex/hammond/tags It would really help me maintain the Helm...

+1 for dual unit support. As @Atwistoflemming says, fuel in the UK is sold in litres but fuel consumption is is stated in miles per gallon.