
1720
u/Resthier
I am trying to prevent an object from being added to it's own ManyToManyField.
class Module(models.Model):
code = models.CharField(max_length=8, primary_key=True)
credit_value = models.IntegerField(default=0)
is_virtual = models.BooleanField(default=False)
pre_requisites = models.ManyToManyField("self", symmetrical=False, blank=True)
anti_requisites = models.ManyToManyField("self", blank=True)
def __str__(self):
return self.code
def add(self, *args, **kwargs):
if any([mod.code == self.code for mod in self.pre_requisites.all()]):
print("Argh")
raise ValidationError("Y
Is there any way to make dolphin use double click like in windows file explorer?
On the IT website it says that the firewall blocks connection to the majority of game servers. Does anybody have any experience with what can connect eg. Battlefield 1, R6:Siege, and general steam servers? I am staying in St Salvator's Hall if that helps.
Thanks for any help.