from datetime import date
from django.db import models
from django.db.models.signals import m2m_changed
from datetime import date
from django.db import models
from django.db.models.signals import m2m_changed
help_text=_('If you have a Wikidata ID, like "Q1337", enter it and save.'),
)
help_text=_('If you have a Wikidata ID, like "Q1337", enter it and save.'),
)
wdvalue = wdvalue.label.get("pl", str(wdvalue.label))
setattr(self, attname, wdvalue)
wdvalue = wdvalue.label.get("pl", str(wdvalue.label))
setattr(self, attname, wdvalue)
class WikidataAdminMixin:
def save_related(self, request, form, formsets, change):
super().save_related(request, form, formsets, change)
form.instance.save()
class WikidataAdminMixin:
def save_related(self, request, form, formsets, change):
super().save_related(request, form, formsets, change)
form.instance.save()