Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Hotel(models.Model):
- name = models.CharField(max_length=500, null=False, blank=False)
- address = models.CharField(max_length=500, null=False, blank=False)
- rating = models.FloatField()
- photo = models.ImageField(upload_to='hotel_photos', null=True)
- owner = models.CharField(max_length=200, null=False)
- class Meta:
- ordering = ['name']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement