Django Admin Form clean method override only working for one exception

2018-01-04 Thread dean raemaekers
Hello, I am trying to override the Forms in the Django Admin interface to have custom exceptions in the clean() method. This works for my first validation, but it doesn't work for a second one in the same form, or on another form at all. I am wondering if I have the syntax wrong for multiple v

Re: Django Admin Form clean method override only working for one exception

2018-01-04 Thread dean raemaekers
project.com/en/2.0/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other > ). > > On Thu, Jan 4, 2018 at 7:06 AM, dean raemaekers > wrote: > >> Hello, >> >> I am trying to override the Forms in the Django Admin interface to have >>

Django admin panel records disappearing

2018-07-23 Thread dean raemaekers
Hello, I am using the Django admin tool as an internal tool to reach into a remote database. Most of my models work perfectly with the save. method additions I have added, but there are 2 that are not working. What happens is that the admin screen gives a successful "save" message, but the gr

python manage.py inspectdb > models.py crashing with KeyError: options['no-color']

2018-07-24 Thread dean raemaekers
Hello, I am trying to use inspectdb to generate models for a legacy database. I get the following error: $ python custom_inspectdb.py Traceback (most recent call last): File "custom_inspectdb.py", line 8, in Command().execute(table_name_filter=lambda table_name: table_name in tables, da