I got the following problem: On my developing server everything is fine. On my deployment server (apache) I have the problem
The problem: Hotel dissapears in the admin when I import the country.models I tryied about everthing with many apache restarts and many changes.. If I simple add the classes of country in the hotel model I don't have the problem... But that is not the way I want it. I tryied to find it by elimination as there is no error repport on it! Could this be a bug? is this an apache problem? where do I have to look to solve this??? Consider these two models: model hotel: 1 from django.db import models 2 from country.models import Country, State_province, City 3 4 class Hotel(models.Model): 5 hotel_name = models.CharField(maxlength=40) 6 address = models.CharField(maxlength=50, blank=True) 7 number = models.CharField(maxlength=10, blank=True) 8 postcode = models.CharField(maxlength=15) 9 country = models.ForeignKey(Country) 10 state_province = models.ForeignKey(State_province) 11 city = models.ForeignKey(City) 12 website = models.URLField() 13 14 def __str__(self): 15 return self.hotel_name 16 17 class Admin: 18 list_display = ('hotel_name', 'address', 'country', 'city') 19 list_filter = ('country', 'city') 20 ordering = ('hotel_name',) 21 search_fields = ('^hotel_name') 22 23 class Hotel_contact_detail(models.Model): 24 id_hotel = models.ForeignKey(Hotel, edit_inline=models.TABULAR, num_in_admin=3) 25 SALUTATION_CHOICES = (('Mr', 'Mr'), ('Ms', 'MS'),) 26 salutation = models.CharField(maxlength=2, choices=SALUTATION_CHOICES) 27 first_name = models.CharField(maxlength=30, blank=True) 28 last_name = models.CharField(maxlength=40) 29 email = models.EmailField(core=True) 30 tel = models.CharField(maxlength=20, blank=True) 31 fax = models.CharField(maxlength=20, blank=True) 32 33 def __str__(self): 34 return '%s %s' % (self.first_name, self.last_name) model country 1 from django.db import models 2 3 class Country(models.Model): 4 country = models.CharField(maxlength=50) 5 phone_prefix = models.CharField(maxlength=10) 6 def __str__(self): 7 return self.country 8 9 class State_province(models.Model): 10 country = models.ForeignKey(Country) 11 state_province = models.CharField(maxlength=60) 12 def __str__(self): 13 return self.state_province 14 class Admin: 15 pass 16 17 class City(models.Model): 18 country = models.ForeignKey(Country) 19 city = models.CharField(maxlength=60) 20 def __str__(self): 21 return self.city 22 class Admin: 23 pass ~ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---