Phil Gyford
Phil Gyford
I have a similar problem but can't yet figure out a solution. For my ModelAdmin I want to add `countries` to `readonly_fields` – it's never user-editable on this model –...
While doing something else I figured out the solution. `models.py`: ```python class MyModel(models.Model): countries = CountryField(multiple=True, blank=True) ``` `admin.py`: ```python from django.contrib import admin from django.utils.html import format_html_join from .models...
For clarity, I'm unsure if this is worth doing, given the current restrictions on Twitter v2 API use.
Does anyone know if any progress was made on this? I'm using Parsley for a project at the moment but we need it to be a lot more accessible.
It is. Unfortunately I don't have the time on this project to devote to it (we're in a "quick-n-dirty" stage) so I'll have to leave it. I suspect that in...
Asked about it in the Google Group: https://groups.google.com/g/guardian-api-talk/c/3pqUQfJ28iE
I've discovered that switching jQuery's `fx` off before the tests "fixes" the problems, although it took me a long time to get to this point. And it's odd that `slideDown()`...
Also tried https://github.com/spinningarrow/zoom-vanilla.js which is promising, but for some reason the zoomed image is given strange proportions.
`form.instance` is the instance of the model that's being added. We can look at the Django source's `Model` class to find the `_state` attribute: https://github.com/django/django/blob/main/django/db/models/base.py#L472 ```python class Model(AltersData, metaclass=ModelBase): def...
As well as duplicating the form, you'd need to update the management form fields so that when Django receives the data it knows how many forms to expect. I'd suggest...