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
from django.utils.translation import gettext_lazy as _
from django.dispatch import receiver
from wikidata.client import Client
from django.utils.translation import gettext_lazy as _
from django.dispatch import receiver
from wikidata.client import Client
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):
class WikidataAdminMixin:
def save_related(self, request, form, formsets, change):