You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.0 KiB

  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. class Migration(migrations.Migration):
  5. dependencies = [("api", "0006_check_grace")]
  6. operations = [
  7. migrations.CreateModel(
  8. name="Ping",
  9. fields=[
  10. (
  11. "id",
  12. models.AutoField(
  13. primary_key=True,
  14. serialize=False,
  15. auto_created=True,
  16. verbose_name="ID",
  17. ),
  18. ),
  19. ("created", models.DateTimeField(auto_now_add=True)),
  20. ("remote_addr", models.GenericIPAddressField()),
  21. ("method", models.CharField(max_length=10)),
  22. ("ua", models.CharField(max_length=100, blank=True)),
  23. ("body", models.TextField(blank=True)),
  24. ("owner", models.ForeignKey(to="api.Check", on_delete=models.CASCADE)),
  25. ],
  26. )
  27. ]