Peter Jochum
Peter Jochum
Here is another simple example that triggers R504: ```python def get_bar_if_exists(obj): result = "" if hasattr(obj, "bar"): result = str(obj.bar) return result # noqa: R504 - variable can be modified...
I also ran into this issue: ``` # Exception Cannot generate a unique value for user ``` ```python from django.contrib.auth.models import User ... # Relevant field in instantiated model user...
When merging the contents of two pages the blocks of one page need to be recreated. This is not so bad on text blocks, but if images and documents are...