[Answer]-Test for existence of field in django class

1👍

For example:

field_name_exists = field_name in ModelName._meta.get_all_field_names()

Leave a comment