Posts by Atila Medeiros lavor • 13 points
5 posts
-
1
votes1
answer214
viewsQ: Change github account in Vscode
How do I change the default Github account within VS Code, because when I create a remote repository (Publish to Github button) always points to the wrong account! Today in Vscode is configured the…
-
0
votes1
answer26
viewsA: How do I make a Boolean field model to accept only 1 true and multiple false values in Django?
class Address(models.Model): ... activate = models.BooleanField(blank=False, null=False, default=False) def save(self): if self.activate: addresses = Address.objects.filter(activate=True) for…
-
-1
votes1
answer26
viewsQ: How do I make a Boolean field model to accept only 1 true and multiple false values in Django?
An example of a client’s model address: class Address(models.Model): activate = models.BooleanField(null=False, default=False) AddressLine1 = models.CharField(max_length=60, blank=True, null=True)…
-
-1
votes1
answer48
viewsQ: By clicking the button I get a message from "Referenceerror"
Context I created an application that displays a listing made from the variable - it’s in the application state - projects along with a button "Add button". By clicking on it I’m getting the message…
-
-1
votes1
answer48
viewsQ: Change global branch to main in Ubuntu 20
How do I permanently (globally) change the git branch from "master" to "main" in Ubuntu 20?