-class Service(models.Model):
- ordering = models.IntegerField()
- name = models.CharField(max_length=255)
- url = models.URLField()
- image = models.ImageField(upload_to='accounts/service/')
-
- class Meta:
- ordering = ('ordering', )
-
-
-class ServiceUser(models.Model):
- service = models.ForeignKey(Service, on_delete=models.CASCADE)
- user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
-
-
-class ServiceGroup(models.Model):
- service = models.ForeignKey(Service, on_delete=models.CASCADE)
- group = models.ForeignKey('auth.Group', on_delete=models.CASCADE)
-
-