Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Event(models.Model):
- name = models.CharField(max_length=200)
- start_at = .DateTimeField(auto_now_add = True)
- description = models.TextField()
- contact = models.EmailField()
- author = models.ForeignKey(User, on_delete = models.CASCADE, related_name = 'events')
- location = models.CharFiekd(max_length=400)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement