changement site admin pour caldav_sync_manager
This commit is contained in:
@@ -30,6 +30,9 @@ class caldav_sync_manager(models.Model):
|
||||
dtUpdated = models.DateTimeField('date updated', auto_now=True)
|
||||
dtCreated = models.DateTimeField('date published', auto_now_add=True)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.dtDate} => {self.bDone}"
|
||||
|
||||
def init_caldav(self, caldav_url, caldav_user, caldav_password):
|
||||
client = caldav.DAVClient(url=caldav_url, username=caldav_user, password=caldav_password)
|
||||
data = client.principal()
|
||||
|
||||
Reference in New Issue
Block a user